From 5d4b5782f03734e12c907cbc7e4b8c35926e9554 Mon Sep 17 00:00:00 2001 From: Nicolás Reynolds Date: Wed, 12 Mar 2014 03:40:54 +0000 Subject: Wed Mar 12 03:36:36 UTC 2014 --- community/idesk/PKGBUILD | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'community/idesk/PKGBUILD') diff --git a/community/idesk/PKGBUILD b/community/idesk/PKGBUILD index 027925bcc..b1a0e5c1f 100644 --- a/community/idesk/PKGBUILD +++ b/community/idesk/PKGBUILD @@ -1,4 +1,4 @@ -# $Id: PKGBUILD 90753 2013-05-13 15:08:30Z spupykin $ +# $Id: PKGBUILD 107002 2014-03-11 11:04:01Z spupykin $ # Maintainer: Sergej Pupykin # Contributor: Claudio Sabattoli @@ -13,16 +13,20 @@ depends=('pkgconfig' 'imlib2' 'libpng' 'libxpm' 'libxft' 'gcc-libs') 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 ' \ -e '1,1i#include ' \ -e '1,1i#include ' \ 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 } -- cgit v1.2.3-54-g00ecf