aboutsummaryrefslogtreecommitdiffstats
path: root/main/gdk-pixbuf/APKBUILD
blob: 33faef1d30058979057ae66f859b7e861e1bed66 (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
50
51
52
53
54
55
56
57
58
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gdk-pixbuf
pkgver=2.28.0
pkgrel=0
pkgdesc="GDK Pixbuf library"
url="http://www.gtk.org/"
arch="all"
license="LGPL"
depends=
depends_dev="libpng-dev glib-dev"
makedepends="$depends_dev tiff-dev libjpeg-turbo-dev gobject-introspection-dev"
install="$pkgname.pre-deinstall"
triggers="$pkgname.trigger=/usr/lib/gdk-pixbuf-2.0/*/loaders"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="http://ftp.gnome.org/pub/gnome/sources/gdk-pixbuf/${pkgver%.*}/gdk-pixbuf-$pkgver.tar.xz"
replaces="gtk+"

_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	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 --prefix=/usr \
		--sysconfdir=/etc \
		--with-x11 \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
	rm "$pkgdir"/usr/lib/*.la \
		"$pkgdir"/usr/lib/gdk-pixbuf-*/*/loaders/*.la
}

doc() {
	replaces="gtk+-doc"
	default_doc
}

dev() {
	replaces="gtk+-dev"
	default_dev
}

md5sums="6992493c88db7e38cb94da75148d8ea2  gdk-pixbuf-2.28.0.tar.xz"
sha256sums="561e37695bfb1b07549588b3fca2e6f05b2320eee75b13748bb7dc5e1257d347  gdk-pixbuf-2.28.0.tar.xz"
sha512sums="735780e99778f17e20ad806f6e48a892aa5492b47e1ba034c38f8b8535553833c4a186e405a0705c1c24fecb8c03dce9a014023f434a96ebb9c33f4b2bb44c5c  gdk-pixbuf-2.28.0.tar.xz"