# Maintainer: A. Wilcox <awilfox@adelielinux.org> pkgname=giflib pkgver=5.1.9 pkgrel=0 pkgdesc="Library for reading and writing GIF images" url="https://sourceforge.net/projects/giflib/" arch="all" license="MIT" depends="" makedepends="libsm-dev libx11-dev util-linux-dev xmlto" checkdepends="coreutils" subpackages="$pkgname-dev $pkgname-doc $pkgname-utils" source="https://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2" build() { sed -i '/^PREFIX =/d /^OFLAGS/d' \ Makefile make PREFIX=/usr OFLAGS="$CFLAGS" } check() { make check } package() { make PREFIX=/usr DESTDIR="$pkgdir" install install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING } utils() { pkgdesc="Programs for manipulating GIF images" mkdir -p "$subpkgdir"/usr mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ } sha512sums="f1e0c91fb90c7bf3f2b073f79b1bd4041df5178ff2e5b93975158fc2c6dd6c8ac888f8ff95c3a1804f988ce09154539c20a3196a40704b4d42a0f5846155e0ea giflib-5.1.9.tar.bz2"