makedeb
Open Surge is a fun 2D retro platformer inspired by Sonic games, and a game creation system.
Viewing /PKGBUILD
.
Click here to go back to the Git tree for opensurge.
# Maintainer: exponential <echo ZXhwb25lbnRpYWxtYXRyaXhAcHJvdG9ubWFpbC5jb20K | base64 -d>
# Contributor: José Rebelo (AUR) <joserebelo at outlook dot com>
pkgname=opensurge
pkgver=0.6.1.2
pkgrel=0
pkgdesc='Open Surge is a fun 2D retro platformer inspired by Sonic games, and a game creation system.'
arch=('i386' 'amd64' 'arm' 'armel' 'armhf' 'arm64')
url="https://github.com/alemart/opensurge"
license=('GPL3')
depends=('liballegro5.2>=5.2.7' 'surgescript>=0.6.0')
makedepends=('cmake' 'liballegro5-dev>=5.2.7' 'surgescript>=0.6.0')
source=("$pkgname-$pkgver.tar.gz::https://github.com/alemart/opensurge/archive/v$pkgver.tar.gz")
b2sums=('3d028f616bbc400a89b54c1d83d803f9d7333f00b1559176e9ebcf9a4d270960108705693adb770da944e235e5d7429dcaf8502d775f31b2f7456f0861e640f2')
build() {
cd $pkgname-$pkgver
mkdir -p build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr -DGAME_BINDIR=/usr/games ..
make -j $(nproc)
}
package() {
cd $pkgname-$pkgver/build
make DESTDIR="$pkgdir/" install
#doc
mkdir -p "$pkgdir/usr/share/doc/$pkgname/"
mv "$pkgdir/usr/share/games/$pkgname/README.md" "$pkgdir/usr/share/doc/$pkgname/readme"
mv "$pkgdir/usr/share/games/$pkgname/CHANGES.md" "$pkgdir/usr/share/doc/$pkgname/changelog"
ln -s /usr/share/common-licenses/GPL-3 "$pkgdir/usr/share/doc/$pkgname/"
gzip "$pkgdir/usr/share/doc/$pkgname/changelog"
}