# Maintainer: Jesus E. pkgname=detox pkgver=1.4.5 pkgrel=1 pkgdesc="An utility designed to clean up filenames by replacing characters with standard equivalents" arch=('i686' 'x86_64') url="https://github.com/dharple/detox" license=('Modified-BSD') makedepends=('flex') backup=('etc/detox/detoxrc') source=($pkgname-$pkgver.tar.gz::https://github.com/dharple/$pkgname/archive/v$pkgver.tar.gz) sha512sums=('f91ae893cf50a3f9d731a26218625f572c783406056c0accbd8253d6dc5de9013ffbe1497120af7be4b7054d65ebbe96b73df64a5d1cc3aaec40e6542e5c6208') prepare() { cd "${srcdir}"/$pkgname-$pkgver autoreconf --install } build() { cd "${srcdir}"/$pkgname-$pkgver ./configure \ --prefix=/usr \ --sysconfdir=/etc/detox make } package() { cd "${srcdir}"/$pkgname-$pkgver make DESTDIR="${pkgdir}" install # license install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/$pkgname }