[arch-commits] Commit in idesk/trunk (PKGBUILD)
Sergej Pupykin
spupykin at nymeria.archlinux.org
Tue Mar 11 11:03:40 UTC 2014
Date: Tuesday, March 11, 2014 @ 12:03:40
Author: spupykin
Revision: 107000
Modified:
idesk/trunk/PKGBUILD
----------+
PKGBUILD | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2014-03-11 10:44:10 UTC (rev 106999)
+++ PKGBUILD 2014-03-11 11:03:40 UTC (rev 107000)
@@ -13,9 +13,8 @@
source=("http://downloads.sourceforge.net/sourceforge/idesk/$pkgname-$pkgver.tar.bz2")
md5sums=('beb48c97815c7b085e3b3d601297fbb8')
-build() {
+prepare() {
cd $srcdir/$pkgname-$pkgver
-
sed -i \
-e '1,1i#include <unistd.h>' \
-e '1,1i#include <sys/stat.h>' \
@@ -22,7 +21,12 @@
-e '1,1i#include <sys/types.h>' \
src/DesktopConfig.cpp
sed -i 's#usr/local#usr#' examples/default.lnk
+ sed -i 's#IMLIB2_LIBS=.*#IMLIB2_LIBS=-lImlib2#g' configure
+ sed -i 's#IMLIB_LIBS=.*#IMLIB_LIBS="-L/usr/lib -lImlib -Wl,-O1,--sort-common,--as-needed,-z,relro -ljpeg -ltiff -lgif -lpng -lz -lm -lXext -lXext -lX11 -lImlib2"#g' configure
+}
+build() {
+ cd $srcdir/$pkgname-$pkgver
./configure --prefix=/usr
make
}
More information about the arch-commits
mailing list