summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO1
-rw-r--r--PKGBUILD16
2 files changed, 8 insertions, 9 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 1992dbcb27e..47115b8ff3f 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -10,6 +10,7 @@ pkgbase = cargo-debstatus
license = GPL3
makedepends = cargo
depends = openssl
+ depends = curl
source = cargo-debstatus-0.2.0.tar.gz::https://github.com/kpcyrd/cargo-debstatus/archive/v0.2.0.tar.gz
sha512sums = 68770be752ff06e53b8264471b9a0fa724eec4dd5fae2785d1e2a9da0eafd41542f79daa3b8b56fbf40372da8aa30664d6f119ca71396628c70670519c5f0f65
diff --git a/PKGBUILD b/PKGBUILD
index a122efe2ac6..cc8df711020 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,29 +5,27 @@ pkgver=0.2.0
pkgrel=1
pkgdesc="cargo-tree for debian packaging"
url="https://github.com/kpcyrd/cargo-debstatus"
-depends=('openssl')
+depends=('openssl' 'curl')
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")
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/kpcyrd/${pkgname}/archive/v${pkgver}.tar.gz")
sha512sums=('68770be752ff06e53b8264471b9a0fa724eec4dd5fae2785d1e2a9da0eafd41542f79daa3b8b56fbf40372da8aa30664d6f119ca71396628c70670519c5f0f65')
build() {
- cd "$pkgname-$pkgver"
+ cd "${pkgname}-${pkgver}"
cargo build --release --locked
}
check() {
- cd "$pkgname-$pkgver"
+ 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"
+ cd "${pkgname}-${pkgver}"
+ install -Dm755 "target/release/${pkgname}" -t "${pkgdir}/usr/bin"
+ install -Dm644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
}
# vim:set ts=2 sw=2 et: