aboutsummaryrefslogtreecommitdiffstats
path: root/main/enca
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-08-30 18:47:33 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2017-08-31 06:59:26 +0000
commit6215d64334f747b860014e517d4fa80cab68dc0c (patch)
tree2528a549d854de5d0092f8b79cf72676d07546ea /main/enca
parenta655c0c42b7ef3b6a55e2fe2be302a8669819303 (diff)
downloadaports-6215d64334f747b860014e517d4fa80cab68dc0c.tar.bz2
aports-6215d64334f747b860014e517d4fa80cab68dc0c.tar.xz
main/enca: modernize APKBUILD and add check
Diffstat (limited to 'main/enca')
-rw-r--r--main/enca/APKBUILD25
1 files changed, 12 insertions, 13 deletions
diff --git a/main/enca/APKBUILD b/main/enca/APKBUILD
index 05b92e3650..f580ffce9d 100644
--- a/main/enca/APKBUILD
+++ b/main/enca/APKBUILD
@@ -2,20 +2,18 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=enca
pkgver=1.19
-pkgrel=0
+pkgrel=1
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.xz"
-_builddir="$srcdir"/$pkgname-$pkgver
+builddir="$srcdir/$pkgname-$pkgver"
+
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -24,17 +22,18 @@ build() {
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--libexecdir=/usr/lib \
- --enable-external \
- || return 1
+ --enable-external
+ make
+}
- make || return 1
+check() {
+ cd "$builddir"
+ make check
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
}
-md5sums="a7a0c152658e012db701a48ae8b79525 enca-1.19.tar.xz"
-sha256sums="3a487eca40b41021e2e4b7a6440b97d822e6532db5464471f572ecf77295e8b8 enca-1.19.tar.xz"
sha512sums="6678639992685180457bbef7b0da6e475071ec6935dfd672188fc242ef80b906e75eff9a206e07989893d0ef4ae5eb500f1d0bbd6b4d58146c94bb143b5fb296 enca-1.19.tar.xz"