Date: Wednesday, July 30, 2014 @ 15:45:17 Author: ronald Revision: 218379
upgpkg: habak 0.2.5-5 mtree rebuild; fix building error Modified: habak/trunk/PKGBUILD ----------+ PKGBUILD | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2014-07-30 13:43:11 UTC (rev 218378) +++ PKGBUILD 2014-07-30 13:45:17 UTC (rev 218379) @@ -4,7 +4,7 @@ pkgname=habak pkgver=0.2.5 -pkgrel=4 +pkgrel=5 pkgdesc="A background changing app" url="http://fvwm-crystal.org" license=('GPL2') @@ -14,13 +14,18 @@ options=('!makeflags') md5sums=('bee5c394989367f7a4c5cb9ec99d307c') +prepare() { + cd "$srcdir/$pkgname-$pkgver" + sed -i 's|^\(LDFLAGS.*$\)|\1 -lX11|' src/Makefile +} + build() { - cd $srcdir/$pkgname-$pkgver + cd "$srcdir/$pkgname-$pkgver" export LDFLAGS=${LDFLAGS/,--sort-common,--as-needed//} make } package() { - cd $srcdir/$pkgname-$pkgver - install -m755 -D habak $pkgdir/usr/bin/habak + cd "$srcdir/$pkgname-$pkgver" + install -m755 -D habak "$pkgdir/usr/bin/habak" }