Want more features on Pastebin? Sign Up, it's FREE!
Guest

PKBUILD imagewriter

By: albertcasanovas on Aug 25th, 2012  |  syntax: None  |  size: 1.10 KB  |  views: 111  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # By: Albert Casanovas (albert.dissenys@gmail.com)
  2.  
  3. pkgname=imagewriter
  4. pkgver=1.9
  5. _opensuse_rel=7.2.1
  6. pkgrel=6
  7. pkgdesc="SUSE Studio Imagewriter - Graphical image writer application"
  8. url="http://kiwi.berlios.de"
  9. arch=('x86_64' 'i686')
  10. license=('GPLv2')
  11. depends=('qt')
  12. source=("http://ftp5.gwdg.de/pub/opensuse/factory-snapshot/repo/source/suse/src/imagewriter-${pkgver}-${_opensuse_rel}.src.rpm"
  13.         'build_fix.patch')
  14. sha512sums=('684b0a1d0d8623fbf158eb48389b0eafa92c83de844488c3f5576a493bfcd1604977370f3a24998c8c57f80c828addf6eb309b74cf05750ea1ca7db6b7b04e21'
  15. '42034f630d0cd097a94e16ea6428c558ec00f16051330cb1bbaf0a2c5c496a6ece997328fba5ffed79cf13aa13299e787c1b82e4a29a7b92438bc63b36d278e0')
  16.  
  17.  
  18. build() {
  19.   cd "${srcdir}"
  20.   rm -vf imagewriter.spec
  21.   tar zxvf imagewriter-${pkgver}.tar.gz
  22.   cd "${srcdir}/${pkgname}-${pkgver}"
  23.   patch -Np1 -i "${srcdir}/build_fix.patch"
  24.   qmake PREFIX=/usr imagewriter.pro
  25.   make CFLAGS="${CFLAGS} -DKIOSKHACK -Wno-unused-parameter"
  26. }
  27.  
  28. package() {
  29.   cd "${srcdir}/${pkgname}-${pkgver}"
  30.   make INSTALL_ROOT="${pkgdir}" install
  31. }
  32.  
  33. # vim:set ts=2 sw=2 et:
clone this paste RAW Paste Data