From 9fafc9b0132fd17e8637f74524be13c6435a0bf5 Mon Sep 17 00:00:00 2001
From: James Meyer <james.meyer@operamail.com>
Date: Tue, 7 Aug 2012 14:42:08 -0500
Subject: enca 1.13

---
 abs/extra/community/enca/PKGBUILD | 17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)

diff --git a/abs/extra/community/enca/PKGBUILD b/abs/extra/community/enca/PKGBUILD
index e398023..fdcea7c 100644
--- a/abs/extra/community/enca/PKGBUILD
+++ b/abs/extra/community/enca/PKGBUILD
@@ -1,17 +1,17 @@
-# $Id$
+# $Id: PKGBUILD 143739 2011-11-28 18:10:34Z giovanni $
 # Maintainer: Giovanni Scafora <giovanni@archlinux.org>
 # Contributor: Filip Dvorak <fila@pruda.com>
 
 pkgname=enca
 pkgver=1.13
-pkgrel=1
+pkgrel=2
 pkgdesc="Charset analyser and converter"
 arch=('i686' 'x86_64')
 url="http://freshmeat.net/projects/enca/"
 options=('!libtool')
 license=('GPL')
-depends=('recode' 'sh')
-source=(http://dl.cihar.com/${pkgname}/${pkgname}-${pkgver}.tar.bz2)
+depends=('recode' 'bash')
+source=("http://dl.cihar.com/${pkgname}/${pkgname}-${pkgver}.tar.bz2")
 md5sums=('762bead5d9a0a5e55024e1102baaa89d')
 
 build() {
@@ -22,6 +22,11 @@ build() {
               --mandir=/usr/share/man \
               --with-librecode=/usr \
               --enable-external
-  make || return 1
-  make DESTDIR="${pkgdir}" install || return 1
+  make
+}
+
+package() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+
+  make DESTDIR="${pkgdir}" install
 }
-- 
cgit v0.12

