summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c5b78d1e87ff1606c55848aa20e5e0bd1abcc6d5 (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
pkgname=iortcw-bin
pkgver=1.51c
pkgrel=1
_pkgrel_x86_64=1
_pkgrel_i686=1
_pkgrel_aarch64=1
pkgdesc="Open source engine for Return to Castle Wolfenstein"
arch=('x86_64' 'i686' 'aarch64')
url="https://gitlab.com/linuxbombay/iortcw"
license=('GPL')
depends=('sdl2' 'openal' 'zenity')
makedepends=('unzip')
sha256sums_x86_64=('659f8a52e59ad57156073c6797d77e067a8004966c5cbf179557c326f31a0b6d')
sha256sums_i686=('2f164cf9f0690be1bc798dd5028c3ccc9a6461fd0b95f8be306485e85bd3fa34')
sha256sums_aarch64=('30ea0430d0fc81ad524e5f1956f4a040f6e3242e96b65a743a5a40877e532b48')
source_x86_64=("$url/$pkgver/-/raw/main/iortcw-linux-x64.tar.xz")
source_i686=("$url/$pkgver/-/raw/main/iortcw-linux-i686.tar.xz")
source_aarch64=("$url/$pkgver/-/raw/main/iortcw-linux-arm64.tar.xz")

package() {
    install -dm755 "$pkgdir/usr/bin"
    install -dm755 "$pkgdir/usr/share/games/iortcw"
    
    rm -rf  $srcdir/iortcw-*
    cp -R $srcdir/* $pkgdir/usr/share/games/iortcw/
   #Binaries
    find /usr/share/games/iortcw/ -name 'iowolfsp.*' -exec ln -sf {} "$pkgdir/usr/bin/iowolfsp" \;
    find /usr/share/games/iortcw/ -name 'iowolfmp.*' -exec ln -sf {} "$pkgdir/usr/bin/iowolfmp" \;
    find /usr/share/games/iortcw/ -name 'iowolfded.*' -exec ln -sf {} "$pkgdir/usr/bin/iowolfded" \;
}