summaryrefslogtreecommitdiffstats
path: root/main/enca/APKBUILD
blob: a792d44404b46ffa85579884d5fa345313ed8929 (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
# Contributor: Carlo Landmeter
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=enca
pkgver=1.15
pkgrel=0
pkgdesc="Charset analyser and converter"
url="http://freshmeat.net/projects/enca/"
arch="all"
license="GPL"
depends=
makedepends=
install=
subpackages="$pkgname-dev $pkgname-doc"
source="http://dl.cihar.com/${pkgname}/${pkgname}-${pkgver}.tar.bz2"

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

prepare() {
	cd "$_builddir"
	update_config_sub || return 1
	# apply patches here
}

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

	make || return 1
}

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

md5sums="fef132969d26e649719eae08297a4a52  enca-1.15.tar.bz2"
sha256sums="bba29ceb57e7989b89a5a28a97573ae55f46b40fb96f18d83a1d08a205752bc6  enca-1.15.tar.bz2"
sha512sums="f0b843b0b38fcb250991ad072fe2f1bcaa6aaad8348983446046f40b44a2523a7c3b46569f9693e5b2848356288f718595ea4cc9bc0b4685aac02291fe7393ba  enca-1.15.tar.bz2"