SHARE
TWEET

seemingly working pkgbuild for gimp-gap

a guest Jan 26th, 2016 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. pkgname=gimp-gap
  2. pkgver=2.6.0
  3. pkgrel=5.1
  4. pkgdesc="Gimp Animation Package, gimp's plugin for animation"
  5. url="https://www.gimp.org/tutorials/Using_GAP/"
  6. arch=('x86_64' 'i686')
  7. license=('GPLv3')
  8. depends=('gimp>=2.6.0' 'glib2')
  9. makedepends=('intltool')
  10. optdepends=('xvidcore: compression codec'
  11.             'lbzip2: data compressor'
  12.             'faac: audio encoder'
  13.             'faad2: audio decoder'
  14.             'lame: mpeg layer 3 codec'
  15.             'libx264: H264 codec')
  16. source=("http://download.gimp.org/pub/gimp/plug-ins/v2.6/gap/${pkgname}-${pkgver}.tar.bz2")
  17. md5sums=('249ed829de8b78675c0fe4ef4212089f')
  18.  
  19. # I have to admit I don't fully understand this stuff
  20. build() {
  21.   cd "${srcdir}/${pkgname}-${pkgver}"
  22.  
  23. # I don't know why, but I found it in a prior PKGBUILD
  24.   sed -i 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.in
  25.   sed -i 's:AM_PROG_CC_STDC:AC_PROG_CC:' configure.in
  26.  
  27. # -lm must be one of the last libraries for the compilation to succeed
  28.   sed -i 's/-lm"/"/' configure
  29.  
  30.   ./configure \
  31.     --prefix=/usr \
  32.     --exec-prefix=/usr \
  33.     --sbindir=/usr/bin \
  34.     --sysconfdir=/etc \
  35.     --localstatedir=/var \
  36.     --libdir=/usr/lib \
  37.     --includedir=/usr/include \
  38.     --datadir=/usr/share \
  39.     --disable-libmpeg3
  40.    
  41. # libmpeg3 seems to goof up for a lot of people so it's disabled
  42.  
  43. # Add -lm as the last library to be linked and start compiling
  44.   make LIBS+=' -lm'
  45. }
  46.  
  47. package() {
  48.   cd "${srcdir}/${pkgname}-${pkgver}"
  49.  
  50.   make DESTDIR="${pkgdir}" install
  51. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top