summaryrefslogtreecommitdiffstats
path: root/glib1/Pkgfile
blob: 495c89318a793781dc2f5dccb42082688048a685 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Description: Librairie de bas niveau 
# URL:  http://gd.tuwien.ac.at/graphics/gimp
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch

name=glib1
version=1.2.10
release=2
localname=glib
source=( http://gd.tuwien.ac.at/graphics/gimp/gtk/v1.2/$localname-$version.tar.gz\
	http://nutyx.meticul.eu/files/patchs/$name/{config.patch,gcc340.patch} )


build() {
cd $localname-$version
patch -Np1 -i ../config.patch
patch -Np1 -i ../gcc340.patch
[ "`uname -m`" = 'x86_64' ] && CONFIGFLAG='--host=x86_64-unknown-linux-gnu --target=x86_64-unknown-linux-gnu'
./configure --prefix=/usr --host=`uname -m`\
	--mandir=/usr/share/man \
	--infodir=/usr/share/info $CONFIGFLAG
make DESTDIR=$PKG install
if [ -f $PKG/usr/lib/libgmodule-1.2.so.0.0.10 ]; then
	chmod -v 755 $PKG/usr/lib/libgmodule-1.2.so.0.0.10
fi
rm $PKG/usr/share/info/dir
}