blob: 23fabbf38bdfe75934d7185a2284fdbe8ced3973 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
pkgname=detox
pkgver=1.2.0
pkgrel=2
pkgdesc="An utility designed to clean up filenames by replacing characters with standard equivalents"
arch=('i686' 'x86_64')
url="http://detox.sourceforge.net/"
license=('BSD')
makedepends=('flex')
options=('!makeflags')
backup=('etc/detox/detoxrc')
source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.bz2
http://sourceforge.net/p/detox/patches/_discuss/thread/02e5e473/ae23/attachment/detox-1.2.0.fix-invalid-memory-access.patch)
md5sums=('da34c6bc3c68ce2fb008e25066e72927'
'98f2c7cf5610bd4568d6e0e75af505af')
prepare() {
cd "${srcdir}"/${pkgname}-${pkgver}
patch -Np1 -i "${srcdir}"/detox-1.2.0.fix-invalid-memory-access.patch
}
build() {
cd "${srcdir}"/${pkgname}-${pkgver}
./configure --prefix=/usr --sysconfdir=/etc/detox
make
}
package() {
cd "${srcdir}"/${pkgname}-${pkgver}
make DESTDIR="${pkgdir}" install
#license file
install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}
|