mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-31 22:32:14 +01:00
an utility that finds multiple copies of files and replaces them with hardlinks http://jak-linux.org/projects/hardlink/
37 lines
1.0 KiB
Plaintext
37 lines
1.0 KiB
Plaintext
# 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"
|