diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-01-25 16:43:57 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-01-25 16:43:57 +0000 |
commit | 9526ee659401dee7160f35cb62ded2779bcbbc99 (patch) | |
tree | 812ad73bde9c84dcc02a3acbc5db576369ca314a /main/giflib/APKBUILD | |
parent | 05e09c1126a898b6d0af491fef0401bf53e297f8 (diff) | |
download | aports-9526ee659401dee7160f35cb62ded2779bcbbc99.tar.bz2 aports-9526ee659401dee7160f35cb62ded2779bcbbc99.tar.xz |
merged x11 repository into main
ref #255
Diffstat (limited to 'main/giflib/APKBUILD')
-rw-r--r-- | main/giflib/APKBUILD | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/main/giflib/APKBUILD b/main/giflib/APKBUILD new file mode 100644 index 000000000..4ea64b882 --- /dev/null +++ b/main/giflib/APKBUILD @@ -0,0 +1,31 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=giflib +pkgver=4.1.6 +pkgrel=1 +pkgdesc="A library for reading and writing gif images" +url="http://sourceforge.net/projects/giflib/" +license="MIT" +subpackages="$pkgname-dev $pkgname-doc" +depends= +makedepends="libx11-dev libsm-dev util-linux-ng-dev" +source="http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2" + +build () { + cd "$srcdir"/$pkgname-$pkgver + ./configure --prefix=/usr || return 1 + make || return 1 + MAJOR=`echo $pkgver | sed 's/\([0-9]\+\)\..*/\1/'` + gcc -shared -Wl,-soname,libungif.so.${MAJOR} -Llib/.libs -lgif -o libungif.so.$pkgver || return 1 +} + +package() { + cd "$srcdir"/$pkgname-$pkgver + make DESTDIR="$pkgdir" install || return 1 + install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING \ + || return 1 + + install -m755 libungif.so.$pkgver "$pkgdir"/usr/lib/ || return 1 + ln -sf libungif.so.$pkgver "$pkgdir"/usr/lib/libungif.so.4 || return 1 + ln -sf libungif.so.4 "$pkgdir"/usr/lib/libungif.so || return 1 +} +md5sums="7125644155ae6ad33dbc9fc15a14735f giflib-4.1.6.tar.bz2" |