Skip to content

Commit

Permalink
Update PKGBUILD
Browse files Browse the repository at this point in the history
  • Loading branch information
joehillen committed Oct 12, 2021
1 parent 879a109 commit fc050a2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
25 changes: 15 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,16 +1,26 @@
VERSION := $(shell cat VERSION)
ARCHIVE := sysz-$(VERSION).tar.gz
.PHONY: all install clean release
.PHONY: install clean release archive

sysz: VERSION CHANGELOG.md
sysz: VERSION
sed -i -e "s/^SYSZ_VERSION=.*/SYSZ_VERSION=$(VERSION)/" sysz

$(ARCHIVE): VERSION CHANGELOG.md
$(ARCHIVE): sysz CHANGELOG.md README.md
git archive --format=tar.gz -o $(ARCHIVE) --prefix sysz-$(VERSION)/ HEAD

clean:
/bin/rm -f README.md

README.md: README.sh sysz VERSION
./README.sh

archive: $(ARCHIVE)

PKGBUILD: VERSION $(ARCHIVE)
sed -i -e "s/^sha256sums=.*/sha256sums=('`sha256sum $(ARCHIVE) | cut -d' ' -f1`')/" PKGBUILD
makepkg -f

aur-release: PKGBUILD
git commit -am 'Update PKGBUILD'
git push origin master
cp PKGBUILD ~/src/aur/sysz/PKGBUILD
Expand All @@ -19,18 +29,13 @@ PKGBUILD: VERSION $(ARCHIVE)
git commit -am "Release $(VERSION)"
git push origin master

all: clean sysz $(ARCHIVE)

release: all
github-release: VERSION sysz CHANGELOG.md README.md
git commit -am 'Release $(VERSION)'
git tag $(VERSION)
git push origin $(VERSION)

clean:
/bin/rm -f README.md
release: clean sysz README.md github-release

README.md: README.sh sysz VERSION
./README.sh

install:
install -m755 sysz /usr/local/bin/
2 changes: 1 addition & 1 deletion PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ url="https://github.com/joehillen/sysz"
license=("UNLICENSE")
depends=("bash" "fzf")
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/$pkgver.tar.gz")
sha256sums=('948ef4bbff219fae9cea2cb630a6e5749d5163155e6a6825bf7e7607b8b30107')
sha256sums=('d9520e471dbb26da0046da1959e705fb70caee8e3dba9fd6c1963f8a6e9d6c70')

package() {
install -Dm775 "$srcdir/$pkgname-$pkgver/sysz" "$pkgdir/usr/bin/sysz"
Expand Down

0 comments on commit fc050a2

Please sign in to comment.