summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorquininer2018-06-04 15:46:57 +0800
committerquininer2018-06-04 15:46:57 +0800
commit5bb6da512896cb54a12c1e02fb97420c1760b2b6 (patch)
treee6a7cea2fb7307b1d9d77d85acbdd24adb1db0e8 /PKGBUILD
downloadaur-5bb6da512896cb54a12c1e02fb97420c1760b2b6.tar.gz
init
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..46249ab614a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+pkgname=git-dit-git
+_pkgname=git-dit
+pkgdesc="Decentralized Issue Tracking for git"
+pkgrel=1
+pkgver=0.4.0.905
+arch=('i686' 'x86_64')
+conflicts=("git-dit")
+provides=("git-dit")
+url="https://github.com/neithernut/git-dit"
+license=('GPL2')
+depends=('git')
+makedepends=('rust' 'cargo' 'pandoc')
+source=("$_pkgname::git+https://github.com/neithernut/git-dit.git")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd $_pkgname
+ echo "$(grep '^version =' Cargo.toml|head -n1|cut -d\" -f2|cut -d\- -f1).$(git rev-list --count HEAD)"
+}
+
+build() {
+ cd $_pkgname
+ pandoc -s -f markdown+smart -t man-smart git-dit.1.md -o git-dit.1
+ env CARGO_INCREMENTAL=0 cargo build --release
+}
+
+package() {
+ cd $_pkgname
+ install -D -m644 "$srcdir/$_pkgname/git-dit.1" "$pkgdir/usr/share/man/man1/git-dit.1"
+ install -D -m755 "$srcdir/$_pkgname/target/release/git-dit" "$pkgdir/usr/bin/git-dit"
+}