diff options
author | Dasperal | 2023-10-29 17:21:55 +0300 |
---|---|---|
committer | Dasperal | 2023-10-29 17:59:30 +0300 |
commit | dbb3ef36915e3b4b300bd06dedf5451ad390117a (patch) | |
tree | 07815ad13bcc5a43ec7020746d3f001d844de640 /PKGBUILD | |
download | aur-russian-doom-git.tar.gz |
Initial creation of AUR package for Russian Doom dev builds (git)
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..6d7ea52a4599 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Leonid Murin (Dasperal) <Dasperal1 at gmail dot com> +pkgname=russian-doom-git +pkgver=r4765.e97fdcbe +pkgrel=1 +pkgdesc="A limit-removing source port of Doom, Heretic and Hexen with enhancements and Russian translation (git version)" +arch=('i686' 'x86_64' 'armv7h' 'aarch64') +url="https://github.com/Russian-Doom/russian-doom" +license=('GPL2') +depends=('sdl2>=2.0.18' 'sdl2_mixer>=2.0.2' 'sdl2_net>=2.0.0' 'libsamplerate') +makedepends=(cmake python3) +optdepends=('doom1-wad: Doom shareware game data' 'heretic1-wad: Heretic shareware game data' 'hexen1-wad: Hexen demo game data') +conflicts=('russian-doom') +source=("git+https://github.com/Russian-Doom/russian-doom.git") +b2sums=('SKIP') + +pkgver() { + cd "$srcdir/russian-doom" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + # Upstream forces `-O2` for 'Release' build type + cmake -S "russian-doom" -B "build" \ + -D CMAKE_BUILD_TYPE="Release" \ + -D CMAKE_INSTALL_PREFIX="/usr" \ + -D RD_BUILD_VERSION_OVERWRITE="$pkgver" \ + -D RD_GIT_NO_HASH="ON" + cmake --build "build" +} + +package() { + DESTDIR="${pkgdir}" cmake --install build + install -d "${pkgdir}/usr/share/licenses/russian-doom" + mv "${pkgdir}/usr/share/doc/russian-doom/GPL.txt" "${pkgdir}/usr/share/licenses/russian-doom/LICENSE" + rm -r "${pkgdir}/usr/share/doc" +} |