blob: 985707c56d623f5ae21efb137eaf852718b5321c (
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
|
pkgname=wolfboa
_pkgname=Wolfboa
pkgver=c31.1.1
pkgrel=1
scriptver=1.0.1
pkgdesc="Wolfenstein: Blade of Agony game powered by the GZDoom."
arch=('x86_64' 'aarch64')
license=('GPL')
url="https://gitlab.com/linuxbombay/wolfboa"
depends=('gzdoom-bin' 'aria2' 'unzip' 'yad')
makedepends=('unzip')
source=("$url/wolfboa/-/archive/$scriptver/wolfboa-$scriptver.tar.bz2" "$url/game-files/$pkgver/-/raw/main/boa_$pkgver.zip")
sha256sums=('07a80889ed12a9bda92959c935476aac6b630194cc85c196e5771da00fcc63d5'
'32e3b9aeaa9d970fed253ec5a830db9ee5cfe51612ffa1831b7e804427dcc68e')
package() {
install -dm755 "$pkgdir/usr/bin"
install -dm775 "$pkgdir/usr/share/games/$_pkgname"
install -dm755 "$pkgdir/usr/share/pixmaps"
cp -rf "$srcdir/$pkgname-$scriptver/$pkgname" "$pkgdir/usr/bin"
cp -rf "$srcdir/$pkgname-$scriptver/$pkgname.png" "$pkgdir/usr/share/pixmaps"
cp -rf "$srcdir/$pkgname-$scriptver/$pkgname-title.png" "$pkgdir/usr/share/games/$_pkgname"
find $srcdir -type f \( -iname "*.dll" -o -iname "*.exe" \) -exec rm {} \;
find $srcdir -type f \( -iname "*.boa" -o -iname "*.pk3" -o -iname "*.ipk3" \) -exec cp {} "$pkgdir/usr/share/games/$_pkgname" \;
cd $srcdir
cp -r addons fm_banks language launcher-resource soundfonts "/$pkgdir/usr/share/games/$_pkgname"
# Desktop Entry
install -Dm644 "$srcdir/$pkgname-$scriptver/$pkgname.desktop" \
"$pkgdir/usr/share/applications/$pkgname.desktop"
sed -i s%/usr/share%/opt% "$pkgdir/usr/share/applications/$pkgname.desktop"
}
|