summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorWesley Moore2017-08-01 11:25:08 +1000
committerWesley Moore2017-08-01 11:25:08 +1000
commit46943e10e2822cecea2d4e8c5cb0367b1e2bdaf5 (patch)
treef0748916dc842d49ecc595a78da7ed16b9f9f5e6 /PKGBUILD
downloadaur-alt-git.tar.gz
Add initial PKGBUILD
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD25
1 files changed, 25 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..99b4490a206
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,25 @@
+# Maintainer: Wesley Moore <wes@wezm.net>
+_pkgname=alt
+pkgname=${_pkgname}-git
+pkgver=103
+pkgrel=1
+pkgdesc='Command line utility that attempts to find the "alternate path" for the provided path'
+arch=('i686' 'x86_64')
+url="https://github.com/uptech/alt"
+license=('MIT')
+depends=()
+makedepends=('rust' 'cargo' 'git')
+source=("git+https://github.com/uptech/alt.git")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/$_pkgname"
+ git rev-list --count HEAD
+}
+
+package() {
+ cd "$srcdir/$_pkgname"
+ cargo build --release
+ install -Dm755 "$srcdir/$_pkgname/target/release/$_pkgname" "$pkgdir/usr/bin/$_pkgname"
+ #install -Dm644 "$srcdir/$_pkgname/contrib/man/$_pkgname.1" "$pkgdir/usr/share/man/man1/$_pkgname.1"
+}