diff options
author | João Figueiredo | 2021-08-30 00:05:05 +0100 |
---|---|---|
committer | João Figueiredo | 2021-08-30 00:05:05 +0100 |
commit | 193a1b45460c5cbfc058a8ad71f70ba738325287 (patch) | |
tree | a23570f556a4d84c94c8caf7f6335c35734b475e | |
download | aur-193a1b45460c5cbfc058a8ad71f70ba738325287.tar.gz |
Merged with official ABS kspaceduel PKGBUILD
-rw-r--r-- | .SRCINFO | 22 | ||||
-rw-r--r-- | PKGBUILD | 35 |
2 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..6077a58a6e3f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,22 @@ +pkgbase = kspaceduel-git + pkgdesc = Each of two possible players controls a satellite spaceship orbiting the sun + pkgver = 21.11.70_r632.gda4dd85 + pkgrel = 1 + url = https://apps.kde.org/kspaceduel/ + arch = x86_64 + groups = kde-applications-git + groups = kde-games-git + license = GPL + license = LGPL + license = FDL + makedepends = git + makedepends = extra-cmake-modules-git + makedepends = kdoctools-git + depends = libkdegames-git + depends = hicolor-icon-theme + provides = kspaceduel + conflicts = kspaceduel + source = git+https://github.com/KDE/kspaceduel.git + sha256sums = SKIP + +pkgname = kspaceduel-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..1354511e676c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# Merged with official ABS kspaceduel PKGBUILD by João, 2021/08/25 (all respective contributors apply herein) +# Maintainer: João Figueiredo & chaotic-aur <islandc0der@chaotic.cx> + +pkgname=kspaceduel-git +pkgver=21.11.70_r632.gda4dd85 +pkgrel=1 +pkgdesc='Each of two possible players controls a satellite spaceship orbiting the sun' +url='https://apps.kde.org/kspaceduel/' +arch=($CARCH) +license=(GPL LGPL FDL) +groups=(kde-applications-git kde-games-git) +depends=(libkdegames-git hicolor-icon-theme) +makedepends=(git extra-cmake-modules-git kdoctools-git) +conflicts=(${pkgname%-git}) +provides=(${pkgname%-git}) +source=("git+https://github.com/KDE/${pkgname%-git}.git") +sha256sums=('SKIP') + +pkgver() { + cd ${pkgname%-git} + _major_ver="$(grep -m1 'set *(RELEASE_SERVICE_VERSION_MAJOR' CMakeLists.txt | cut -d '"' -f2)" + _minor_ver="$(grep -m1 'set *(RELEASE_SERVICE_VERSION_MINOR' CMakeLists.txt | cut -d '"' -f2)" + _micro_ver="$(grep -m1 'set *(RELEASE_SERVICE_VERSION_MICRO' CMakeLists.txt | cut -d '"' -f2)" + echo "${_major_ver}.${_minor_ver}.${_micro_ver}_r$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)" +} + +build() { + cmake -B build -S ${pkgname%-git} \ + -DBUILD_TESTING=OFF + cmake --build build +} + +package() { + DESTDIR="$pkgdir" cmake --install build +} |