# Contributor: Isaac Dunham <ibid.ag@gmail.com>
# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=gifsicle
pkgver=1.95
pkgrel=0
pkgdesc="Command-line tool for making, editing and getting information about GIF animations"
url="https://www.lcdf.org/gifsicle/"
arch="all"
license="GPL-2.0-only"
makedepends="libx11-dev libice-dev libsm-dev"
checkdepends="perl"
subpackages="$pkgname-doc"
source="https://www.lcdf.org/gifsicle/gifsicle-$pkgver.tar.gz"

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

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
888bb3f4501ce3f12e810045bb432c9e56952df1def565e4a8983529856b00be8e79d9df148858fe2a327d1dd751eb71280e17c8e0426e68290b0dfe02247891  gifsicle-1.95.tar.gz
"
