blob: 2399f3c8496242009326f13b7faafbce43a6d4c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Maintainer: kinker31 <dp223171@gmail.com>
pkgname=chocolate-quake
pkgver=2.1.0
pkgrel=2
pkgdesc="Conservative source port of Quake I"
#32-bit support do be experimental, if it doesn't work, I'll just keep it at x64.
arch=('x86_64' 'arm64' 'i686')
url="https://github.com/Henrique194/chocolate-quake"
license=('GPL-3.0-only')
depends=('sdl2')
makedepends=('cmake' 'gcc' 'git')
conflicts=('chocolate-quake-git')
source=("$pkgname-$pkgver.tar.gz::https://github.com/Henrique194/chocolate-quake/archive/refs/tags/$pkgname-$pkgver.tar.gz")
sha256sums=('a760630778031a0d60ecfd0ba2afb75872f32bffb236a7215c8f513e0449fd76')
build() {
cd "$pkgname-$pkgname-$pkgver/"
mkdir build
cmake -S ./ -B build/
cmake --build build/
}
package() {
cd "$pkgname-$pkgname-$pkgver/"
install -Dm755 build/src/chocolate-quake "$pkgdir/usr/bin/chocolate-quake"
mkdir -p "$pkgdir/usr/share/doc/chocolate-quake/"
mkdir -p "$pkgdir/usr/share/licenses/chocolate-quake/"
install -Dm644 CHANGELOG.md "$pkgdir/usr/share/doc/chocolate-quake/changelog.md"
install -Dm644 README.md "$pkgdir/usr/share/doc/chocolate-quake/readme.md"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/chocolate-quake/LICENSE"
install -Dm644 "./dist/linux/io.github.henrique194.chocolate-quake.desktop" "$pkgdir/usr/share/applications/chocolate-quake.desktop"
install -Dm644 "./dist/linux/io.github.henrique194.chocolate-quake.svg" "$pkgdir/usr/share/pixmaps/chocolate-quake.svg"
}
post_upgrade() {
cat <<- EOF
:: You need the Quake data (.pak) files to play.
:: pak0.pak to play the shareware episode and/or
:: additionally pak1.pak for the whole game.
::
:: Make sure you set the working direcrory of the
:: Desktop file to somewhere you have them
:: installed!
EOF
}
|