aboutsummaryrefslogtreecommitdiffstats
path: root/main/enca/APKBUILD
blob: cf7c90527dab1a07d716ae455d450412cb1f7887 (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
# Contributor: Carlo Landmeter
# Maintainer: 
pkgname=enca
pkgver=1.13
pkgrel=2
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"
	# apply patches here
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--libexecdir=/usr/lib \
		--enable-external \
		--without-libiconv

	make || return 1
}

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

md5sums="762bead5d9a0a5e55024e1102baaa89d  enca-1.13.tar.bz2"