Skip to content

Commit

Permalink
Updates to PKGBUILDs with version stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinBoers committed Jul 27, 2021
1 parent 7cad5f9 commit da2dbd0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
12 changes: 9 additions & 3 deletions pkg/cutie-tanks-git/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Maintainer: Robin Boers <[email protected]>
pkgname=cutie-tanks
pkgver=1.4.4
pkgname=cutie-tanks-git
pkgver=1.4.5
pkgrel=1
pkgdesc="Shoot 'em all arcade game (development version)"
arch=(x86_64)
Expand All @@ -11,12 +11,18 @@ makedepends=(git npm)
checkdepends=()
optdepends=()
provides=(cutie-tanks)
conflicts=(cutie-tanks)
source=('git+https://github.com/RobinBoers/cutie-tanks'
'sh'
'cutie-tanks.desktop'
'icon.png')
md5sums=('SKIP' 'SKIP' 'SKIP' 'SKIP')

pkgver() {
cd cutie-tanks
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
cd cutie-tanks
npm install
Expand All @@ -25,7 +31,7 @@ build() {

package() {
chmod +x "sh"
mkdir -p "$pkgdir/opt/$pkgname/"
mkdir -p "$pkgdir/opt/cutie-tanks/"
mkdir -p "$pkgdir/usr/share/applications/"
mkdir -p "$pkgdir/usr/bin/"

Expand Down
11 changes: 9 additions & 2 deletions pkg/cutie-tanks/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Maintainer: Robin Boers <[email protected]>
pkgname=cutie-tanks
pkgver=1.4.4
pkgver=1.4.5
pkgrel=1
pkgdesc="Shoot 'em all arcade game"
arch=(x86_64)
Expand All @@ -11,13 +11,20 @@ makedepends=(git)
checkdepends=()
optdepends=()
provides=(cutie-tanks)
source=('https://github.com/RobinBoers/cutie-tanks/releases/latest/download/release.zip'
conflicts=(cutie-tanks-git)
source=('git+https://github.com/RobinBoers/cutie-tanks'
'https://github.com/RobinBoers/cutie-tanks/releases/latest/download/release.zip'
'sh'
'cutie-tanks.desktop'
'icon.png')
noextract=("release.zip")
md5sums=('SKIP' 'SKIP' 'SKIP' 'SKIP')

pkgver() {
cd cutie-tanks
git describe --abbrev=0 --tags | sed 's/^v//;'
}

build() {
mkdir -p cutie-tanks
bsdtar -xf release.zip -C cutie-tanks
Expand Down

0 comments on commit da2dbd0

Please sign in to comment.