mirror of
https://github.com/issadarkthing/gomu.git
synced 2025-04-25 13:48:49 +08:00
add AUR build script
This commit is contained in:
parent
ae82da5a04
commit
020b28069f
1
Makefile
1
Makefile
@ -41,3 +41,4 @@ release: build
|
||||
@echo === RELEASING ===
|
||||
mkdir -p dist
|
||||
tar czf dist/gomu-${VERSION}-amd64.tar.gz bin/${BIN_NAME}
|
||||
./aur-build.sh
|
||||
|
12
aur-build.sh
Executable file
12
aur-build.sh
Executable file
@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
VERSION=$(git describe --abbrev=0 --tags)
|
||||
VERSION=${VERSION#v}
|
||||
|
||||
cd ./dist/gomu
|
||||
|
||||
CHECKSUM=$(makepkg -g)
|
||||
|
||||
sed -i "s/^pkgver.*/pkgver=$VERSION/" PKGBUILD
|
||||
sed -i "s/^md5sums.*/$CHECKSUM/" PKGBUILD
|
||||
makepkg --printsrcinfo > .SRCINFO
|
Loading…
x
Reference in New Issue
Block a user