summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD36
2 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..ffed4b97ed0
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = duff-git
+ pkgdesc = A command-line utility for quickly finding duplicates in a given set of files
+ pkgver = 0.5.2.r56.g3c8eb2f
+ pkgrel = 1
+ url = http://duff.dreda.org/
+ arch = i686
+ arch = x86_64
+ license = custom
+ makedepends = git
+ depends = glibc
+ depends = sh
+ provides = duff
+ conflicts = duff
+ source = git+https://github.com/fsiler/duff.git
+ md5sums = SKIP
+
+pkgname = duff-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..81468f933a8
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,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
+}
+