summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven-Hendrik Haase2018-08-18 16:15:10 +0200
committerSven-Hendrik Haase2018-08-18 16:15:10 +0200
commite78943e059371ed6cf41aed97460aab9b1dd92f9 (patch)
tree3d9147714cf7b8fbbd4639f49bc6c07cea77e247
downloadaur-e78943e059371ed6cf41aed97460aab9b1dd92f9.tar.gz
Initial commit
-rw-r--r--.SRCINFO13
-rw-r--r--PKGBUILD29
2 files changed, 42 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..fd0a6332bad
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,13 @@
+pkgbase = elfx86exts
+ pkgdesc = Decode ELF and MachO binaries and print out which instruction set extensions they use
+ pkgver = 0.2.0
+ pkgrel = 1
+ url = https://github.com/pkgw/elfx86exts
+ arch = x86_64
+ license = MIT
+ makedepends = cargo
+ source = elfx86exts.tar.tar::https://crates.io/api/v1/crates/elfx86exts/0.2.0/download
+ sha512sums = 6329c457d91f3bc106b722500b040eaadf078f32e3d0205a9d700ce19ccce12059a75660aafd4160e48485701eed6459309ee6dcda7df7da2ffe1840b0ddb28c
+
+pkgname = elfx86exts
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..46345103ccd
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro@gmail.com>
+pkgname=elfx86exts
+pkgver=0.2.0
+pkgrel=1
+pkgdesc="Decode ELF and MachO binaries and print out which instruction set extensions they use"
+arch=('x86_64')
+url="https://github.com/pkgw/elfx86exts"
+license=(MIT)
+makedepends=(cargo)
+source=("$pkgname.tar.tar"::https://crates.io/api/v1/crates/elfx86exts/$pkgver/download)
+sha512sums=('6329c457d91f3bc106b722500b040eaadf078f32e3d0205a9d700ce19ccce12059a75660aafd4160e48485701eed6459309ee6dcda7df7da2ffe1840b0ddb28c')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ cargo build --release
+}
+
+check() {
+ cd "$srcdir/$pkgname-$pkgver"
+ cargo test --release
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ install -Dm755 target/release/elfx86exts "$pkgdir"/usr/bin/elfx86exts
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et: