diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -6,16 +6,17 @@ pkgdesc="" arch=("x86_64") url="https://github.com/fengkx/webarchiver/" license=('MIT') -source=("$pkgname-$pkgver.tar.gz::https://github.com/fengkx/$pkgname/releases/download/v$pkgver/${pkgname}-v$pkgver-$arch-unknown-linux-gnu.tar.gz") -sha1sums=("8877651056e0aef3a4023234a13e9a3f7eebecc2") +makedepends=('cargo') +source=("$pkgname-$pkgver.tar.gz::https://github.com/fengkx/$pkgname/archive/refs/tags/v$pkgver.tar.gz") +sha1sums=("9933121859d28d696f5e23d6084ae6cb6a80bd9c") -prepare() { - mv -f "webarchiver-v$pkgver-$arch-unknown-linux-gnu" "$pkgname-$pkgver" +build() { + cd "$pkgname-$pkgver" + cargo build --release --locked --all-features --target-dir=target + strip target/release/${pkgname} } - package() { cd "$pkgname-$pkgver" - install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE - install -Dm +x "$pkgname" ${pkgdir}/usr/bin/${pkgname} - + install -Dm644 "LICENSE" "$pkgdir"/usr/share/licenses/$pkgname/LICENSE + install -Dm 755 target/release/${pkgname} -t "${pkgdir}/usr/bin" } |