archrelease: copy trunk to extra-x86_64
[arch-packages.git] / enca / trunk / PKGBUILD
blobe630e6a960fa11bef832b1c0d1f5bfaeb9bce5dd
1 # Maintainer: Giovanni Scafora <giovanni@archlinux.org>
2 # Contributor: Filip Dvorak <fila@pruda.com>
4 pkgname=enca
5 pkgver=1.19
6 pkgrel=4
7 pkgdesc="Charset analyser and converter"
8 arch=('x86_64')
9 url="https://cihar.com/software/enca/"
10 license=('GPL')
11 depends=('recode')
12 options=('!docs')
13 source=("https://dl.cihar.com/${pkgname}/${pkgname}-${pkgver}.tar.xz" enca-bad-file-descriptor.patch)
14 sha256sums=('3a487eca40b41021e2e4b7a6440b97d822e6532db5464471f572ecf77295e8b8'
15             '270c7c0abaea5f3d10173b58849200d4106675d3127a0b9b8ce1fc3dcf775acb')
17 prepare() {
18   cd $pkgname-$pkgver
19   patch -p1 -i ../enca-bad-file-descriptor.patch # https://github.com/nijel/enca/issues/28
22 build() {
23   cd ${pkgname}-${pkgver}
25   ./configure --prefix=/usr \
26               --libexecdir=/usr/lib \
27               --mandir=/usr/share/man \
28               --with-librecode=/usr \
29               --enable-external
30   make
33 package() {
34   cd ${pkgname}-${pkgver}
36   make DESTDIR="${pkgdir}" install