diff options
author | jD91mZM2 | 2018-01-05 10:50:00 +0100 |
---|---|---|
committer | jD91mZM2 | 2018-01-05 10:50:00 +0100 |
commit | eeb9f7f8f8a6108999f9ec53c7a5b56f83c0ae52 (patch) | |
tree | e4181668852d2609c1bd9a2e8320041820fb0795 | |
download | aur-eeb9f7f8f8a6108999f9ec53c7a5b56f83c0ae52.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 23 |
3 files changed, 41 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..c2e09ab6bad1 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = cargo-release + pkgdesc = Cargo subcommand release + pkgver = 0.8.0 + pkgrel = 1 + url = https://github.com/sunng87/cargo-release + arch = x86_64 + license = MIT, + license = APACHE + makedepends = rust + source = https://github.com/sunng87/cargo-release/archive/0.8.0.tar.gz + sha256sums = d9bdf15d39b64ba37a7af973fd7253efa39a933516bd4f5dcb701db6578124fc + +pkgname = cargo-release + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..05c6d4d4c97b --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +* +!.gitignore +!.SRCINFO +!PKGBUILD diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..e013130b8be4 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,23 @@ +# Maintainer: jD91mZM2 <me@krake.one> +pkgname="cargo-release" +pkgver=0.8.0 +pkgrel=1 +pkgdesc="Cargo subcommand "release"" +url="https://github.com/sunng87/cargo-release" +arch=("x86_64") +license=("MIT", "APACHE") +makedepends=("rust") +optdepends=() +depends=() +source=("https://github.com/sunng87/$pkgname/archive/$pkgver.tar.gz") +sha256sums=('d9bdf15d39b64ba37a7af973fd7253efa39a933516bd4f5dcb701db6578124fc') + +build() { + cd "$srcdir/$pkgname-$pkgver" + cargo build --release +} +package() { + cd "$srcdir/$pkgname-$pkgver" + install -Dm 644 LICENSE-MIT "$pkgdir/usr/share/licenses/$pkgname/LICENSE-MIT" + install -Dm 755 "target/release/$pkgname" "$pkgdir/usr/bin/$pkgname" +} |