summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 99653655f99652012d10df48bad12a43623cca11 (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
# Contributor: Mátyás Mustoha 
# Maintainer: Aryan Ghasemi <gnuphile at telegram>

pkgname='supermariowar-bin'
_pkgname='supermariowar'
pkgdesc="Super Mario War multiplayer game."
pkgver='2024.07.16'
_pkgver="${pkgver//./-}"
pkgrel=1
arch=('x86_64')
url='https://github.com/mmatyas/supermariowar'
license=('GPL')
depends=('sdl2_image' 'sdl2_mixer' 'sdl2' 'zlib')
makedepends=('zip' 'tar')
provides=('smw' 'smw-server' 'smw-leveledit' 'smw-worldedit')
conflicts=('smw-git')
source=( 
"${_pkgname}-${pkgver}.zip::${url}/releases/download/continuous/${_pkgname}_${_pkgver}_linux.zip"
"icons.tar.gz"
)
install="${_pkgname}.install"
noextract=( 'icons.tar.gz' )
sha256sums=('0969058cac492f0003ecd712e686fe39719c8415f60a89a0e8fd0baab0d13e2b'
            'd92e0c1390e45a09f5c3a56d23d44cd6723cd4cb81fefac33a783acc79301bbc')

package() {
  cd "$_pkgname"

#documentation and how-to-play
  install -D -m644 readme-v1.8.html "${pkgdir}/usr/share/doc/smw/readme-v1.8.html" 

#game data
  mkdir -p "${pkgdir}/var/lib/${_pkgname}/"
  cp -r data/* "${pkgdir}/var/lib/${_pkgname}/"

#binaries
  install -D -m755 smw smw-leveledit smw-server	smw-worldedit -t "${pkgdir}/usr/bin/"

#icons and .desktop files
  tar xf "${srcdir}/icons.tar.gz" -C "${pkgdir}"
}