# Maintainer: Patrick Northon # Contributor: carstene1ns # Contributor: Jan Alexander Steffens (heftig) pkgname=opentyrian pkgver=2.1.20221123 pkgrel=1 pkgdesc='Open Source port of the classic DOS shoot-em-up Tyrian' url='https://github.com/opentyrian/opentyrian' arch=('x86_64') # refs for asset licensing: # https://www.camanis.net/ # https://web.archive.org/web/20120218200015/http://www.freewebs.com/worldtreegames # https://lostgarden.home.blog/2007/04/05/free-game-graphics-tyrian-ships-and-tiles/ # https://lostgarden.home.blog/2007/03/15/lost-garden-license/ license=('GPL-2.0-only' 'LicenseRef-Freeware') depends=('sdl2' 'sdl2_net' 'hicolor-icon-theme') makedepends=('git') source=( "$pkgname::git+https://github.com/opentyrian/opentyrian.git#tag=v$pkgver" "$pkgname-$pkgver-assets.zip::https://camanis.net/tyrian/tyrian21.zip" 'update-paths.patch' ) sha512sums=('62906b7a1c261b1badb48bd9c65eb818328b5d741c6f9ea0f4a4762d440e43d3eb29047dcb7c417aa91ab8d1d297e112a4eef027dc4d0842bdd5579dd31ca14f' '639aa773778386c14ce508feb4729512d00f80182a3bb0fe8bba4ee38bce91da1867ca93f1a7e5e30ff127da077eed275d8dd6ba82042b627b84f1606e2d6bce' '7059d2c5a19191e1cf24abbf764adbd0fa81d8b529e1f5839a330b15a3023af78763f90de3f559fb980e30081110b6b9c1b1097823a58caa3e0ca00b2a20ce6c') b2sums=('8a0a88fbdb43335f4e08a490ff17da5547b4f5fdac0a58d5995a943e8ef8969463b50340f9ff48308089f016cc21406f805a4b34df8c0a58e5ac5967f39f8aee' '6bef66fbc34a4d2d865fe7088a6942a29348153d0d10347860952a152b882fd9eef1748fbfa9fd32d030593d2f8c21e1cd227dd6ca540488ba5093b95a95fb33' '7535e7ee5773a4e8de6bd51110931aa81b9abaa11f215c846cc914bebf352984a317ae5f31f47ed36cdd4e5a4ec286dabe0b3a31985b50c12f1859568924fe3c') prepare() { cd "$pkgname" patch -p1 -i ../update-paths.patch } build() { make prefix=/usr all -C "$pkgname" } package() { cd "$pkgname" make DESTDIR="$pkgdir" prefix=/usr install # assets pushd "$srcdir/tyrian21" install -vDm644 -t "$pkgdir/usr/share/$pkgname" \ *.dat *.lvl *.shp *.snd demo.* music.mus \ tyrend.anm tyrian.{cdt,hdt,pic} tshp2.pcx popd # license install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" README COPYING }