Compare commits

...

2 commits

Author SHA1 Message Date
cc7ac3e617
bump pkgbuild to 0.6.0 2019-12-31 20:59:01 -05:00
a16e874830
add automatic packaging script 2019-12-31 20:58:42 -05:00
2 changed files with 12 additions and 2 deletions

View file

@ -6,7 +6,7 @@
# file would be part of said release.
pkgname=bunbun
pkgver=0.5.0
pkgver=0.6.0
pkgrel=1
depends=('gcc-libs')
makedepends=('rust' 'cargo')
@ -15,7 +15,7 @@ pkgdesc="Re-implementation of bunny1 in Rust"
url="https://github.com/edward-shen/bunbun"
license=('AGPL')
source=("$pkgname-$pkgver.tar.gz::https://github.com/edward-shen/$pkgname/archive/$pkgver.tar.gz")
sha512sums=('0ffd666acc2f456eb9f83ca0cfcb9420efbb5c135aae13fab6ff194d86b2bd6ec8d225aa9ab34797be80edc6c4341a299f808e61487e308e39ce91f8435f6692')
sha512sums=('1fb4648972275cc288a46362f2d0a239a41cda136f45b535fbdfa616f85239b5deb5f623fa3fb5ec413ae0a6e74bf7f5a899ecaebf19bd27b6c1fadf6a19563c')
build() {
cd "$pkgname-$pkgver"

10
aux/update_pkgbuild Executable file
View file

@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -euo pipefail
mkdir -p out
# shellcheck disable=SC2207
SHASUM=($(curl -sL "https://github.com/edward-shen/bunbun/archive/$1.tar.gz" | sha512sum))
HASH="${SHASUM[0]}"
sed -i "s/^pkgver=.*$/pkgver=$1/; s/sha512sums=('\w*/sha512sums=('$HASH/" PKGBUILD