aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/hardlink/APKBUILD
blob: 76b1848e74ff158c7e739683090f0385885d96f3 (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
# Maintainer: Valery McHno <anarch.linux@gmail.com>
pkgname=hardlink
pkgver=0.3.0
pkgrel=0
pkgdesc="Finds multiple copies of files and replaces them with hardlinks"
url="http://jak-linux.org/projects/hardlink/"
arch="all"
license="MIT"
depends=""
makedepends="pcre musl-dev attr-dev"
subpackages="$pkgname-doc"
source="http://jak-linux.org/projects/hardlink/${pkgname}_${pkgver}.tar.xz"
_builddir="$srcdir"/$pkgname-$pkgver

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

build() {
	cd "$_builddir"
	make || return 1
}

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

md5sums="72f1a460adb6874c151deab766e434ad  hardlink_0.3.0.tar.xz"
sha256sums="e8c93dfcb24aeb44a75281ed73757cb862cc63b225d565db1c270af9dbb7300f  hardlink_0.3.0.tar.xz"
sha512sums="22a8945ce5dac74b05bb1231959823aec0cd364d6db9ad808df4acf232d894170c006ac1e88509604ce1859d41bd4a5d91e2b12c8010aa7fc7e19a77922c4486  hardlink_0.3.0.tar.xz"