2022-05-25 07:30:07 +00:00
|
|
|
# Maintainer: Patrick Northon <northon_patrick3@yahoo.ca>
|
|
|
|
# Contributor: carstene1ns <url/mail: arch carsten-teibes de>
|
|
|
|
# Contributor: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
|
|
|
|
|
|
|
|
pkgname=opentyrian
|
2024-10-29 07:03:16 +00:00
|
|
|
pkgver=2.1.20221123
|
2022-05-25 07:30:07 +00:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc='Open Source port of the classic DOS shoot-em-up Tyrian'
|
2024-10-29 07:03:16 +00:00
|
|
|
url='https://github.com/opentyrian/opentyrian'
|
2022-05-25 07:30:07 +00:00
|
|
|
arch=('x86_64')
|
2024-10-29 07:03:16 +00:00
|
|
|
# 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')
|
2022-05-25 07:30:07 +00:00
|
|
|
depends=('sdl2' 'sdl2_net' 'hicolor-icon-theme')
|
|
|
|
makedepends=('git')
|
|
|
|
source=(
|
2024-10-29 07:03:16 +00:00
|
|
|
"$pkgname::git+https://github.com/opentyrian/opentyrian.git#tag=v$pkgver"
|
|
|
|
"$pkgname-$pkgver-assets.zip::https://camanis.net/tyrian/tyrian21.zip"
|
2022-05-25 07:30:07 +00:00
|
|
|
'update-paths.patch'
|
|
|
|
)
|
2024-10-29 07:03:16 +00:00
|
|
|
sha512sums=('62906b7a1c261b1badb48bd9c65eb818328b5d741c6f9ea0f4a4762d440e43d3eb29047dcb7c417aa91ab8d1d297e112a4eef027dc4d0842bdd5579dd31ca14f'
|
2022-05-25 07:30:07 +00:00
|
|
|
'639aa773778386c14ce508feb4729512d00f80182a3bb0fe8bba4ee38bce91da1867ca93f1a7e5e30ff127da077eed275d8dd6ba82042b627b84f1606e2d6bce'
|
|
|
|
'7059d2c5a19191e1cf24abbf764adbd0fa81d8b529e1f5839a330b15a3023af78763f90de3f559fb980e30081110b6b9c1b1097823a58caa3e0ca00b2a20ce6c')
|
2024-10-29 07:03:16 +00:00
|
|
|
b2sums=('8a0a88fbdb43335f4e08a490ff17da5547b4f5fdac0a58d5995a943e8ef8969463b50340f9ff48308089f016cc21406f805a4b34df8c0a58e5ac5967f39f8aee'
|
2022-05-25 07:30:07 +00:00
|
|
|
'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
|
2024-10-29 07:03:16 +00:00
|
|
|
pushd "$srcdir/tyrian21"
|
2022-05-25 07:30:07 +00:00
|
|
|
install -vDm644 -t "$pkgdir/usr/share/$pkgname" \
|
|
|
|
*.dat *.lvl *.shp *.snd demo.* music.mus \
|
|
|
|
tyrend.anm tyrian.{cdt,hdt,pic} tshp2.pcx
|
2024-10-29 07:03:16 +00:00
|
|
|
popd
|
|
|
|
|
|
|
|
# license
|
|
|
|
install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" README COPYING
|
2022-05-25 07:30:07 +00:00
|
|
|
}
|