aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/duff/APKBUILD
blob: 7c46f157088112afaf0818970b37b191269a593c (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
44
45
46
47
48
49
50
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=duff
pkgver=0.5.2
pkgrel=0
pkgdesc="A command-line tool for finding duplicate files"
url="http://sourceforge.net/projects/duff/"
arch="all"
license="ZLIB"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/duff/$pkgname-$pkgver.tar.gz"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	local i
	cd "$_builddir"
	update_config_sub || return 1
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="483f9216ebea14b090e0d71dbf7077ff  duff-0.5.2.tar.gz"
sha256sums="15b721f7e0ea43eba3fd6afb41dbd1be63c678952bf3d80350130a0e710c542e  duff-0.5.2.tar.gz"
sha512sums="6fb1ede1e935c25c6bf354fee94ef1d9d454d5b98069ce671600e91767f802ad5c74bc602ad2c9e19a502e29c8c0ffcd0563a779714a16389594ea5678504768  duff-0.5.2.tar.gz"