diff options
author | Benjamin Chrétien | 2016-06-05 23:38:27 +0200 |
---|---|---|
committer | Benjamin Chrétien | 2016-06-05 23:38:27 +0200 |
commit | f78df56013a454abf8d867c3f6312e6e188fac1d (patch) | |
tree | defb1da4360fbc42ae18e99b1665c8135f0f9fb2 | |
download | aur-f78df56013a454abf8d867c3f6312e6e188fac1d.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 20 |
2 files changed, 36 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..313d5909791c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +# Generated by mksrcinfo v8 +# Sun Jun 5 21:38:21 UTC 2016 +pkgbase = cargo-profiler + pkgdesc = A cargo subcommand to profile binaries + pkgver = 0.1.6 + pkgrel = 1 + url = https://github.com/pegasos1/cargo-profiler + arch = i686 + arch = x86_64 + license = Apache 2.0 + depends = cargo + source = cargo-profiler-0.1.6.tar.gz::https://crates.io/api/v1/crates/cargo-profiler/0.1.6/download + sha256sums = 35a113c07b5001e28d03dba58213677d004ea13ec180561ec7d6dca6e9ae074b + +pkgname = cargo-profiler + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a9539ca5dd6c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,20 @@ +pkgname=cargo-profiler +pkgver=0.1.6 +pkgrel=1 +pkgdesc="A cargo subcommand to profile binaries" +url="https://github.com/pegasos1/cargo-profiler" +depends=('cargo') +arch=('i686' 'x86_64') +license=('Apache 2.0') +source=("$pkgname-$pkgver.tar.gz::https://crates.io/api/v1/crates/$pkgname/$pkgver/download") +sha256sums=('35a113c07b5001e28d03dba58213677d004ea13ec180561ec7d6dca6e9ae074b') + +build() { + cd "$pkgname-$pkgver" + cargo build --release +} + +package() { + cd "$pkgname-$pkgver" + install -Dm755 "target/release/$pkgname" "$pkgdir/usr/bin/$pkgname" +} |