diff options
Diffstat (limited to 'extra/gmetadom')
-rw-r--r-- | extra/gmetadom/PKGBUILD | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/extra/gmetadom/PKGBUILD b/extra/gmetadom/PKGBUILD index 4dd38268a..34618a3ed 100644 --- a/extra/gmetadom/PKGBUILD +++ b/extra/gmetadom/PKGBUILD @@ -1,4 +1,4 @@ -# $Id: PKGBUILD 37443 2009-05-01 20:50:35Z giovanni $ +# $Id: PKGBUILD 137758 2011-09-10 15:29:12Z pierre $ # Maintainer: Giovanni Scafora <giovanni@archlinux.org> # Contributor: Jan de Groot <jgc@archlinux.org> @@ -12,17 +12,20 @@ license=('LGPL') depends=('gdome2') makedepends=('pkgconfig' 'ocaml') options=('!libtool' '!makeflags') -source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz - gmetadom-0.2.6-gcc43.patch) +source=("http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz" + 'gmetadom-0.2.6-gcc43.patch') md5sums=('7bfb5d9c6f20ffa5e790b63d1f8cb481' 'ea0271007f8650733029327823353d0d') build() { cd ${srcdir}/${pkgname}-${pkgver} - patch -Np1 -i ${srcdir}/gmetadom-0.2.6-gcc43.patch || return 1 - ./configure --prefix=/usr --disable-static - # Don't make tests, they need a static library. - sed -ri 's/^SUBDIRS = (.+) test$/SUBDIRS = \1/' src/gdome_cpp_smart/Makefile - make || return 1 + patch -Np1 -i ${srcdir}/gmetadom-0.2.6-gcc43.patch + export LDFLAGS=${LDFLAGS/,--as-needed} + ./configure --prefix=/usr + make +} + +package() { + cd ${srcdir}/${pkgname}-${pkgver} make DESTDIR=${pkgdir}/ install } |