desktop/fdupes/PKGBUILD

32 lines
908 B
Bash

#
# Apps packages for Chakra, part of chakra-project.org
#
# Maintainer: Bruce Liu <rainman59118@gmail.com>
pkgname=fdupes
pkgver=1.51
pkgrel=1
pkgdesc="A program for identifying or deleting duplicate files residing within specified directories"
arch=('x86_64')
url="http://code.google.com/p/fdupes/"
license=('MIT')
categories=('utils')
source=("http://fdupes.googlecode.com/files/$pkgname-$pkgver.tar.gz"
LICENSE)
sha1sums=('8276b39026f57a2f9503d7af18efca0a7d42b8ec'
'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
}