summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..de7da21ac66
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,46 @@
+# Maintainer: Antoine Pierlot-Garcin <antoine@bokbox.com>
+pkgname=debsigs-git
+pkgver=r60.52a2621
+pkgrel=1
+pkgdesc="toolset for cryptographically signing Debian packages"
+arch=('any')
+url="http://gitorious.org/debsigs/debsigs"
+license=('GPL')
+groups=()
+depends=('perl')
+makedepends=('git' 'perl') # 'bzr', 'git', 'mercurial' or 'subversion'
+provides=("${pkgname%-git}")
+conflicts=("${pkgname%-git}")
+replaces=()
+backup=()
+options=()
+install=
+source=('debsigs::git+http://gitorious.org/debsigs/debsigs.git')
+noextract=()
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/${pkgname%-git}"
+
+## Git, tags available
+# printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
+
+# Git, no tags available
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ cd "$srcdir/${pkgname%-git}"
+ #patch -p1 -i "$srcdir/${pkgname%-git}.patch"
+}
+
+build() {
+ cd "$srcdir/${pkgname%-git}"
+ perl Makefile.PL
+ make
+}
+
+package() {
+ cd "$srcdir/${pkgname%-git}"
+ make DESTDIR="$pkgdir/" install
+}