summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorquininer2018-06-04 15:46:57 +0800
committerquininer2018-06-04 15:46:57 +0800
commit5bb6da512896cb54a12c1e02fb97420c1760b2b6 (patch)
treee6a7cea2fb7307b1d9d77d85acbdd24adb1db0e8
downloadaur-5bb6da512896cb54a12c1e02fb97420c1760b2b6.tar.gz
init
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD31
2 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e508668d94b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = git-dit-git
+ pkgdesc = Decentralized Issue Tracking for git
+ pkgver = 0.4.0.905
+ pkgrel = 1
+ url = https://github.com/neithernut/git-dit
+ arch = i686
+ arch = x86_64
+ license = GPL2
+ makedepends = rust
+ makedepends = cargo
+ makedepends = pandoc
+ depends = git
+ provides = git-dit
+ conflicts = git-dit
+ source = git-dit::git+https://github.com/neithernut/git-dit.git
+ sha256sums = SKIP
+
+pkgname = git-dit-git
+
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"
+}