1 # Maintainer: Giovanni Scafora <giovanni@archlinux.org>
2 # Contributor: Filip Dvorak <fila@pruda.com>
7 pkgdesc="Charset analyser and converter"
9 url="https://cihar.com/software/enca/"
13 source=("https://dl.cihar.com/${pkgname}/${pkgname}-${pkgver}.tar.xz" enca-bad-file-descriptor.patch)
14 sha256sums=('3a487eca40b41021e2e4b7a6440b97d822e6532db5464471f572ecf77295e8b8'
15 '270c7c0abaea5f3d10173b58849200d4106675d3127a0b9b8ce1fc3dcf775acb')
19 patch -p1 -i ../enca-bad-file-descriptor.patch # https://github.com/nijel/enca/issues/28
23 cd ${pkgname}-${pkgver}
25 ./configure --prefix=/usr \
26 --libexecdir=/usr/lib \
27 --mandir=/usr/share/man \
28 --with-librecode=/usr \
34 cd ${pkgname}-${pkgver}
36 make DESTDIR="${pkgdir}" install