blob: 93f2690da7bd68222bf4c51ef2fc8f4bd55479b6 (
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
|
_engine='crustygame'
pkgname='crustris'
pkgver='0.3.2'
pkgrel=1
license=('GPL3')
pkgdesc='Retro style 2D Tetris game using the crustygame engine.'
url='https://github.com/paulguy/crustygame'
arch=('i686' 'x86_64')
depends=('sdl2')
makedepends=('sdl2')
source=(
"${_engine}-${pkgver}.tar.gz::${url}/archive/refs/tags/${pkgver}.tar.gz"
"crustris.sh"
)
sha256sums=(
'75fed36b562fa6d8dd6c3970dff86ab62dec329fa031193d1dba3ad7c98e8484'
'1e846c139a1d8b1543f8c42eb63c7d41501afbeb23bbe350920fc6ca09214be0'
)
build() {
cd "${srcdir}/${_engine}-${pkgver}"
make
}
package() {
cd "${srcdir}/${_engine}-${pkgver}"
# Prepare crustris shared resources.
install -Dm644 ./examples/crustris.cvm \
"${pkgdir}/usr/share/crustris/crustris.cvm"
cp -r ./examples/crustris_files \
"${pkgdir}/usr/share/crustris/crustris_files"
cp -r ./examples/lib "${pkgdir}/usr/share/crustris/lib"
# Install documentation: README and README.crustris
# into /usr/share/doc/crustygame.
install -Dm644 ./examples/README "${pkgdir}/usr/share/doc/crustris/README"
install -Dm644 ./README "${pkgdir}/usr/share/doc/crustris/README.crustygame"
# Install the crustygame launcher and crustris script.
install -Dm755 ./crustygame "${pkgdir}/usr/bin/crustygame"
install -Dm755 "${srcdir}/crustris.sh" "${pkgdir}/usr/bin/crustris"
}
|