summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 57dd240c644d0935b1d1d598b4c50f529db17c27 (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
# Maintainer: uint2048_t

pkgname=wipeout-rewrite-git
pkgver=cf68eab
pkgrel=1
pkgdesc="A re-implementation of the 1995 PSX game wipEout"
arch=(x86_64)
url="https://github.com/phoboslab/wipeout-rewrite"
license=(custom)
depends=(sdl2 glew)
makedepends=(git make gcc imagemagick)
             
source=("git+https://github.com/phoboslab/wipeout-rewrite.git"
	"https://archive.org/download/wipeout-data.tar/wipeout-data.tar.zst"
	"wipeout.png"
        "wipeout.desktop")

sha256sums=('SKIP'
	    'c15037e260bd186ddda2b4bf26d055f0b1ec7e6d0610f3b75f57d1bf788d92b7'
            '9374b04f78bd925661decd8cc8832598d7c53e6f477f71edd5eee02d6f09a3e5'
            '32343d744be32a80fa3cd44f8318a974a01cbb15beee03e29c85a082d707e496')

pkgver() {
  cd wipeout-rewrite
  git rev-parse --short HEAD
}

build() {
  cd wipeout-rewrite
  make sdl
}

package() {
  install -d "$pkgdir"/opt/wipeout-rewrite
  install -Dm755 "wipeout-rewrite/wipegame" "${pkgdir}/opt/wipeout-rewrite"
  cp -rv "wipeout" "${pkgdir}/opt/wipeout-rewrite"
  chmod -v 757 "${pkgdir}/opt/wipeout-rewrite" # workaround because the game only saves to the the current dir
  for _size in "512x512" "256x256" "192x192" "128x128" "96x96" "64x64" "48x48" "32x32" "24x24" "22x22" "20x20" "16x16" "8x8"
  do
    install -dm644 "${pkgdir}/usr/share/icons/hicolor/${_size}/apps"
    convert "${srcdir}/wipeout.png" -resize "${_size}" "${pkgdir}/usr/share/icons/hicolor/${_size}/apps/wipeout.png"
  done
  install -Dm644 "${srcdir}/wipeout.desktop" "${pkgdir}/usr/share/applications/wipeout.desktop"
}