summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a8f1cf4cbb6741e14edc39795a33b1d45c61f714 (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.05.07'
_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=('cbdfce6790ed05a7beba471ad91a79937eaaadcf679f77a0f5378830a0181dea'
            '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}"
}