diff options
author | Wesley Moore | 2017-08-17 13:50:05 +1000 |
---|---|---|
committer | Wesley Moore | 2017-08-17 13:50:05 +1000 |
commit | c55683d8c8c5672788d9e26cd63a52088b8f0359 (patch) | |
tree | 173d65ffe9f9e9cbb9475384a1062075e784e2dd | |
download | aur-c55683d8c8c5672788d9e26cd63a52088b8f0359.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 23 |
2 files changed, 40 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..b2baa8993119 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = alt + pkgdesc = Command line utility that attempts to find the "alternate path" for the provided path + pkgver = 2.4.0 + pkgrel = 1 + url = https://github.com/uptech/alt + arch = i686 + arch = x86_64 + license = MIT + makedepends = rust + makedepends = cargo + makedepends = git + conflicts = alt-git + source = alt-2.4.0.tar.gz::https://github.com/uptech/alt/archive/v2.4.0.tar.gz + sha512sums = a83facb0468d2986a0330ac39e6db443db9b9f09c00820156309ea1c768b3da5ceb38ff8280ec904c7a8587748b43cbbfd206dca50408dc3c25a69d6bb4592d5 + +pkgname = alt + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..f3fba8632f49 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,23 @@ +# Maintainer: Wesley Moore <wes@wezm.net> +pkgname=alt +pkgver=2.4.0 +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=() +conflicts=('alt-git') +makedepends=('rust' 'cargo' 'git') +source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz") +sha512sums=('a83facb0468d2986a0330ac39e6db443db9b9f09c00820156309ea1c768b3da5ceb38ff8280ec904c7a8587748b43cbbfd206dca50408dc3c25a69d6bb4592d5') + +build() { + cd "$pkgname-$pkgver" + cargo build --release +} + +package() { + install -Dm755 "$srcdir/$pkgname-$pkgver/target/release/$pkgname" "$pkgdir/usr/bin/$pkgname" + install -Dm644 "$srcdir/$pkgname-$pkgver/doc/$pkgname.1" "$pkgdir/usr/share/man/man1/$pkgname.1" +} |