APKBUILD 780 Bytes
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1
2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=exiv2
3
pkgver=0.23
Natanael Copa's avatar
Natanael Copa committed
4
pkgrel=0
Natanael Copa's avatar
Natanael Copa committed
5
6
7
8
9
10
11
12
13
14
15
pkgdesc="Exif and Iptc metadata manipulation library and tools."
url="http://exiv2.org"
arch="all"
license="GPL2"
depends=""
depends_dev="expat-dev zlib-dev"
makedepends="zlib-dev expat-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="http://www.exiv2.org/exiv2-$pkgver.tar.gz"

_builddir="$srcdir"/$pkgname-$pkgver
16
17
18
19
20

prepare() {
	cd "$_builddir"
	update_config_sub || return 1
}
Natanael Copa's avatar
Natanael Copa committed
21
22
build() {
	cd "$_builddir"
23
24
25
26
27
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		|| return 1
Natanael Copa's avatar
Natanael Copa committed
28
29
30
31
32
33
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
Natanael Copa's avatar
Natanael Copa committed
34
	rm "$pkgdir"/usr/lib/*.la || return 1
Natanael Copa's avatar
Natanael Copa committed
35
36
}

37
md5sums="dab67c07bb63a4386d4ea607a8e06eaf  exiv2-0.23.tar.gz"