summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorkpcyrd2018-08-19 04:15:50 +0100
committerkpcyrd2018-08-19 04:15:50 +0100
commit0d6c55e90e941d8985f18b9a25495a856e2366c9 (patch)
treeb76d3b5ecb1651083a86234e5bf61163207a93f2
downloadaur-0d6c55e90e941d8985f18b9a25495a856e2366c9.tar.gz
v0.1.0-1
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD33
2 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..6c3e8aa1bd1
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = cargo-debstatus
+ pkgdesc = cargo-tree for debian packaging
+ pkgver = 0.1.0
+ pkgrel = 1
+ url = https://github.com/kpcyrd/cargo-debstatus
+ arch = i686
+ arch = x86_64
+ arch = armv6h
+ arch = aarch64
+ license = GPL3
+ makedepends = cargo
+ depends = openssl
+ source = cargo-debstatus-0.1.0.tar.gz::https://github.com/kpcyrd/cargo-debstatus/archive/v0.1.0.tar.gz
+ sha512sums = a43aa91ca9aab8d0f7d40077ab8976de30029718af7e9d7cbfe72d43cba8f690a4a218caca17c171b29eb017fb68c21a6d8bda5421cabe4165cd8bf8f405817d
+
+pkgname = cargo-debstatus
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..377a1f6d2dd
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer: kpcyrd <git@rxv.cc>
+
+pkgname=cargo-debstatus
+pkgver=0.1.0
+pkgrel=1
+pkgdesc="cargo-tree for debian packaging"
+url="https://github.com/kpcyrd/cargo-debstatus"
+depends=('openssl')
+makedepends=('cargo')
+arch=('i686' 'x86_64' 'armv6h' 'aarch64')
+license=('GPL3')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/kpcyrd/$pkgname/archive/v$pkgver.tar.gz")
+sha512sums=('a43aa91ca9aab8d0f7d40077ab8976de30029718af7e9d7cbfe72d43cba8f690a4a218caca17c171b29eb017fb68c21a6d8bda5421cabe4165cd8bf8f405817d')
+
+build() {
+ cd "$pkgname-$pkgver"
+ cargo build --release --locked
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+ cargo test --release --locked
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ install -Dm755 target/release/$pkgname -t "$pkgdir/usr/bin"
+
+ install -Dm644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
+ install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
+}
+
+# vim:set ts=2 sw=2 et: