PKGBUILD 825 Bytes
Newer Older
Manuel's avatar
Manuel committed
1
pkgname=fdupes
gnastyle's avatar
gnastyle committed
2
pkgver=1.6.1
Manuel's avatar
Manuel committed
3
pkgrel=1
gnastyle's avatar
gnastyle committed
4
epoch=1
5
pkgdesc="A program for identifying or deleting duplicate files residing within specified directories"
6
arch=('x86_64')
gnastyle's avatar
gnastyle committed
7
url="https://github.com/adrianlopezroche/fdupes"
Manuel's avatar
Manuel committed
8
license=('MIT')
9
categories=('utils')
gnastyle's avatar
gnastyle committed
10
source=("https://github.com/adrianlopezroche/fdupes/archive/v$pkgver.tar.gz"
11
	LICENSE)
gnastyle's avatar
gnastyle committed
12
sha1sums=('e6c26e2012927ebecab33f00280cabbb0aef702d'
13 14
          '03f106f6fc05c04ede59598a3f48ce472ab633fb')

Manuel's avatar
Manuel committed
15 16
build() {
  cd $srcdir/$pkgname-$pkgver
17 18
  sed 's|/usr/local|/usr|' -i Makefile
  make
Manuel's avatar
Manuel committed
19 20 21
}
package(){
  cd $srcdir/$pkgname-$pkgver
22 23 24 25
  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
Manuel's avatar
Manuel committed
26
}