aboutsummaryrefslogtreecommitdiffstats
path: root/testing/detox/APKBUILD
blob: cf7974e32fc1ed8452f24635761b4c4fd0e88c72 (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
39
40
41
42
43
# Contributor: z3bra <willy at mailoo dot org>
# Maintainer:
pkgname=detox
pkgver=1.2.0
pkgrel=0
pkgdesc="Utility for cleaning up filenames"
url="http://detox.sourceforge.net"
arch="all"
license="BSD-3-Clause"
depends=""
depends_dev=""
makedepends="$depends_dev flex-dev"
install=""
subpackages="$pkgname-doc"
options="!check" # no upstream/available test-suite
source="$pkgname-$pkgver.tar.bz2::http://sourceforge.net/projects/detox/files/detox/1.2.0/detox-1.2.0.tar.bz2/download"

builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--infodir=/usr/share/info \
		--mandir=/usr/share/man \
		--datadir=/usr/share
	make
}

package() {
	cd "$builddir"

	install -d -m 755 $pkgdir/etc
	install -d -m 755 $pkgdir/usr/bin
	install -d -m 755 $pkgdir/usr/share/detox
	install -d -m 755 $pkgdir/usr/share/man/man1
	install -d -m 755 $pkgdir/usr/share/man/man5

	make DESTDIR="$pkgdir" install
}

sha512sums="48c0060ed0538c26aeba444bf327f1e52ea47d0e696577deeb43304dfb960ee5abe984651948bfc67c51d7f15f9051df2a208acfe53a5778a7471460e87f639a  detox-1.2.0.tar.bz2"