summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 81468f933a8f084a26ca62f5bf41a614ed4f7c29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
# Contributor: Aaron Schaefer <aaron@elasticdog.com>

pkgname=duff-git
pkgver=0.5.2.r56.g3c8eb2f
pkgrel=1
pkgdesc="A command-line utility for quickly finding duplicates in a given set of files"
arch=('i686' 'x86_64')
url="http://duff.dreda.org/"
license=('custom')
depends=('glibc' 'sh')
makedepends=('git')
conflicts=('duff')
provides=('duff')
source=("git+https://github.com/fsiler/${pkgname%-git}.git")
md5sums=('SKIP')

pkgver() {
  cd ${pkgname%-git}
  git describe --tags | sed 's+-+.r+' | tr - .
}

build() {
  cd ${pkgname%-git}
  echo > gettextize --no-changelog -f
  autoreconf -i
  ./configure --prefix=/usr --mandir=/usr/share/man
  make
}

package() {
  cd ${pkgname%-git}
  make DESTDIR="$pkgdir" install
  install -D -m644 COPYING "$pkgdir"/usr/share/licenses/${pkgname}/COPYING
}