aboutsummaryrefslogtreecommitdiffstats
path: root/main/libgexiv2/APKBUILD
blob: 96cb4b8e837066490ebe3e9fb779321de9f95bf8 (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libgexiv2
pkgver=0.6.1
pkgrel=0
pkgdesc="a GObject-based wrapper around the  Exiv2 library"
url="http://trac.yorba.org/wiki/gexiv2"
arch="all"
license="GPL"
depends=
depends_dev="glib-dev exiv2-dev"
makedepends="exiv2-dev glib-dev libtool m4"
install=
subpackages="$pkgname-dev"
source="http://yorba.org/download/gexiv2/${pkgver%.*}/${pkgname}_$pkgver.tar.xz"

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

prepare() {
	cd "$_builddir"
	# apply patches here
}

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

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

md5sums="5bd2ba92b765a2b3721874ebd2647734  libgexiv2_0.6.1.tar.xz"
sha256sums="72ee2fcc6a98c9e83467adea45b10d1b61c55654c204dcce9c2463615389a9e3  libgexiv2_0.6.1.tar.xz"
sha512sums="76aecd20ffac202badb51eab4e40fee563c3073892beec716bcf24e285df42f2498594a9e0bf487e198e8c955047d55e5b49b506bbf8b67c64956c0b99a84b1b  libgexiv2_0.6.1.tar.xz"