desktop/fdupes/PKGBUILD
2016-08-21 12:35:47 +02:00

28 lines
826 B
Bash

pkgname=fdupes
pkgver=1.6.1
pkgrel=1
epoch=1
pkgdesc="A program for identifying or deleting duplicate files residing within specified directories"
arch=('x86_64')
url="https://github.com/adrianlopezroche/fdupes"
license=('MIT')
categories=('utils')
source=("https://github.com/adrianlopezroche/fdupes/archive/v$pkgver.tar.gz"
LICENSE)
sha1sums=('e6c26e2012927ebecab33f00280cabbb0aef702d'
'03f106f6fc05c04ede59598a3f48ce472ab633fb')
build() {
cd $srcdir/$pkgname-$pkgver
sed 's|/usr/local|/usr|' -i Makefile
make
}
package(){
cd $srcdir/$pkgname-$pkgver
install -dm 755 ${pkgdir}/usr/{share/man/man1,bin}
install -Dm 755 ${pkgname} ${pkgdir}/usr/bin/${pkgname}
install -Dm 644 ${pkgname}.1 ${pkgdir}/usr/share/man/man1
install -D -m644 $srcdir/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
}