summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 49b3c9f78cc9ec933595db4a4f1c0d65ffd97e43 (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
# Maintainer: kleintux <reg-archlinux AT klein DOT tuxli DOT ch> 
# Contributor: Alexander Rødseth <rodseth@gmail.com>

pkgname=solitude
pkgver=1
pkgrel=2
pkgdesc="Tomes of Solitude, a game"
arch=('x86_64' 'i686' 'aarch64')
url="https://ludumdata.openfu.com/game/31869"
license=('unknown')
depends=('sdl' 'sdl_image' 'sdl_mixer')
makedepends=('cmake' 'glu')
install=$pkgname.install
source=("https://github.com/bl00dy1837/Tomes-of-Solitude/raw/master/tomes_of_solitude_1.tar.gz"
        "solitude.sh"
        "solitude.png"
        "solitude.desktop")
sha256sums=('94ccf40b2db120a71c23789f9147606d8103a149b887fc6a2828f6fb15d5a3ae'
            '65864c882d63a57f130d1417a4919f72f1a05a02022d3d8afe779bf7f86120cf'
            'eb6ce37db9ebeb176b38f3912d7b8c43ffd7c40b0c4f90adff83499142d52e09'
            'd57be66a8d25618b31a0e12e41fb8debee52f2be87a0e8d2ad6ad0391a29e2a1')

build() {
  cd "${srcdir}/tomes_of_${pkgname}"
  cmake -G "Unix Makefiles"
  make
}

package() {
  cd "${srcdir}/tomes_of_${pkgname}"
  install -Dm755 tos "${pkgdir}/usr/bin/${pkgname}.elf"
  mkdir -p "${pkgdir}/usr/share/solitude"
  cp -r res "${pkgdir}/usr/share/solitude/"
  cp -r maps "${pkgdir}/usr/share/solitude/"
  cd "${srcdir}"
  install -Dm755 "${pkgname}.sh" "${pkgdir}/usr/bin/solitude"
  install -Dm644 "$pkgname.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
  install -Dm644 "${pkgname}.png" "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
}

# vim:set ts=2 sw=2 et: