summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorkpcyrd2018-03-02 17:10:10 +0100
committerkpcyrd2018-03-02 17:10:10 +0100
commit1708cb52af21c4d91a941319fc4c557670de7484 (patch)
treeeee0e67e686f9dfd7d27204e778ccd5cf6581c60 /PKGBUILD
downloadaur-1708cb52af21c4d91a941319fc4c557670de7484.tar.gz
v0.1.11-1
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..2379f35de07
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,25 @@
+# Maintainer: kpcyrd <git@rxv.cc>
+
+pkgname=cargo-asm
+pkgver=0.1.11
+pkgrel=1
+pkgdesc="Cargo subcommand that shows the assembly or llvm-ir generated for Rust code"
+url="https://github.com/gnzlbg/cargo-asm"
+depends=('cargo' 'gcc-libs')
+arch=('i686' 'x86_64' 'armv6h')
+license=('MIT' 'APACHE')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/gnzlbg/$pkgname/archive/v$pkgver.tar.gz")
+sha256sums=('8fac71f85a7981287364d00ac3004196ec510e1fb336b60ca8f4595ae4f53a61')
+
+build() {
+ cd "$pkgname-$pkgver"
+ cargo build --release
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ install -Dm755 "target/release/cargo-asm" "target/release/cargo-llvm-ir" -t "$pkgdir/usr/bin/"
+ install -Dm644 license-mit.md license-apache.md -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
+
+# vim:set ts=2 sw=2 et: