aboutsummaryrefslogtreecommitdiffstats
path: root/main/giblib/APKBUILD
blob: 34aabf5238cd8c08f5b16e0f8bd57829f3949fc8 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=giblib
pkgver=1.2.4
pkgrel=8
pkgdesc="Giblib is a library that feh uses as a wrapper to imlib2"
url="http://linuxbrit.co.uk/giblib/"
arch="all"
license="MIT"
subpackages="$pkgname-doc $pkgname-dev"
depends=
makedepends="imlib2-dev libxext-dev libx11-dev freetype-dev zlib-dev"
source="http://dev.alpinelinux.org/archive/giblib/giblib-$pkgver.tar.gz"

depends_dev="imlib2-dev freetype-dev zlib-dev libx11-dev libxext-dev"
_builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	cd "$_builddir"
	update_config_sub || return 1
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" docsdir=/usr/share/doc/giblib install || return 1
	install -Dm644 COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING
}
sha512sums="4866df223e6d219a5c9a327874bcd67260c83fba8f99862222df41ef86fb31efa0172a777bf46c853ca380dc2a64bbd41bf4fd658fcb84a924cab4e0f525dcfd  giblib-1.2.4.tar.gz"