aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorValery McHno <anarch.linux@gmail.com>2016-01-20 08:10:26 +0200
committerTimo Teräs <timo.teras@iki.fi>2016-01-20 09:17:27 +0000
commitd1556b7bd0c04d3396c1e3b47cebdefbe87521f6 (patch)
treed5c42c2c9fe95b30cfa02e0a7fedf23d69a75ba0 /testing
parented7459c4c2a2a534065fffb2e7d838bb4a3776b5 (diff)
downloadaports-d1556b7bd0c04d3396c1e3b47cebdefbe87521f6.tar.bz2
aports-d1556b7bd0c04d3396c1e3b47cebdefbe87521f6.tar.xz
testing/hardlink: new aport
an utility that finds multiple copies of files and replaces them with hardlinks http://jak-linux.org/projects/hardlink/
Diffstat (limited to 'testing')
-rw-r--r--testing/hardlink/APKBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/testing/hardlink/APKBUILD b/testing/hardlink/APKBUILD
new file mode 100644
index 0000000000..76b1848e74
--- /dev/null
+++ b/testing/hardlink/APKBUILD
@@ -0,0 +1,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"