aboutsummaryrefslogtreecommitdiffstats
path: root/testing/gifsicle/APKBUILD
blob: d5bb8693a7e9249441dd170da425a0a63934a4b4 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Contributor: Isaac Dunham <ibid.ag@gmail.com>
# Maintainer: Isaac Dunham <ibid.ag@gmail.com>
pkgname=gifsicle
pkgver=1.86
pkgrel=0
pkgdesc="Command-line tool for making, editing, and getting information about GIF animations"
url="http://www.lcdf.org/gifsicle/"
arch="all"
license="GPL2"
depends=""
makedepends="libx11-dev libice-dev libsm-dev"
install=""
subpackages="$pkgname-doc"
source="http://www.lcdf.org/gifsicle/gifsicle-$pkgver.tar.gz"

_builddir="$srcdir"/gifsicle-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm -f "$pkgdir"/usr/lib/*.la
}

md5sums="5eadf90cf7a6f22447b0f146e146d092  gifsicle-1.86.tar.gz"
sha256sums="b0046d5e619240de00a6401e0056843cd57006f674e2babe0e9013e0dcb47394  gifsicle-1.86.tar.gz"
sha512sums="d55609e5d71f63ec13c1eed6a9071d756f07c765d2496d468cc7291e3b9e29304be1c3a5b0e822d9dc2df29ac489bafca2650d226d5b3c51dad74dd22c725a13  gifsicle-1.86.tar.gz"