diff options
author | Erich Eckner <git@eckner.net> | 2021-09-20 21:44:19 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2021-09-20 21:44:19 +0200 |
commit | 069926e81619b7c7cded49d630d53907972451dc (patch) | |
tree | f54261d08939a86add8e10530c8849b3b8417283 /hyperrogue/PKGBUILD | |
parent | 38a10728c08a162d84071d3dc2ad3399b7e7cd5d (diff) | |
download | archlinuxewe-069926e81619b7c7cded49d630d53907972451dc.tar.xz |
hyperrogue: 11.3.a-6 -> 12.0f-1
Diffstat (limited to 'hyperrogue/PKGBUILD')
-rw-r--r-- | hyperrogue/PKGBUILD | 33 |
1 files changed, 7 insertions, 26 deletions
diff --git a/hyperrogue/PKGBUILD b/hyperrogue/PKGBUILD index 0a795b835..ecf795bac 100644 --- a/hyperrogue/PKGBUILD +++ b/hyperrogue/PKGBUILD @@ -1,9 +1,8 @@ # Maintainer: Erich Eckner <arch at eckner dot net> # Contributor: Kyle Keen <keenerd@gmail.com> pkgname=hyperrogue -pkgver=11.3.a -_pkgver=${pkgver//./} -pkgrel=6 +pkgver=12.0f +pkgrel=1 pkgdesc="You are a lone outsider in a strange, non-Euclidean hyperbolic world. Optional music." arch=('i686' 'pentium4' 'x86_64') url="http://www.roguetemple.com/z/hyper.php" @@ -18,23 +17,11 @@ _pinned_dependencies=( depends=('sdl_ttf' 'sdl_mixer' 'mesa' 'ttf-dejavu' "${_pinned_dependencies[@]}") makedepends=('glu') -# set to "" for none or "low" or "full" -_music="" - -source=("http://www.roguetemple.com/z/hyper/hyperrogue${_pkgver}-src.tgz") -sha512sums=('40e687999e8537610f8883e5e8708396a2d71e73310f8139dca0c91f85966d2635e9615d152548fc7b927607597f160c0c975544424c784beaf76bebf0354b78') -#echo http://www.roguetemple.com/z/hyper/hyperrogue${_pkgver}-{lq,win}.zip -if [[ "$_music" == "low" ]]; then - source+=("http://www.roguetemple.com/z/hyper/hyperrogue${_pkgver}-lq.zip") - md5sums+=('46a908216afefd6cb199442af7a33d52') -fi -if [[ "$_music" == "full" ]]; then - source+=("http://www.roguetemple.com/z/hyper/hyperrogue${_pkgver}-win.zip") - md5sums+=('8b928f7108ae068fe521e3d27f48c357') -fi +source=("https://github.com/zenorogue/hyperrogue/archive/refs/tags/v${pkgver}.tar.gz") +sha512sums=('2db990568454f93be325a706b0b4fa51694a6f8f9bcd85f3893fbc5cfcb4c2ffbf02b0d5f6f33716b57a0f3aed0e6e2c9713faf3b8e0fdd527c7ca774622c05d') prepare() { - cd "$srcdir/$pkgname${_pkgver}-src" + cd "$srcdir/$pkgname-${pkgver}" sed -i 's|TTF_OpenFont.*;|TTF_OpenFont("/usr/share/fonts/TTF/DejaVuSans-Bold.ttf", siz);|' basegraph.cpp #sed -i 's|<SDL.h>|"SDL.h"|' /usr/include/SDL/SDL_gfxPrimitives.h # todo: confirm bug and open sed -i 's|-c hyper.cpp|& -I/usr/include/SDL/|' Makefile # remove when above bug is fixed @@ -43,18 +30,12 @@ prepare() { } build() { - cd "$srcdir/$pkgname${_pkgver}-src" + cd "$srcdir/$pkgname-${pkgver}" make } package() { - cd "$srcdir/$pkgname${_pkgver}-src" + cd "$srcdir/$pkgname-${pkgver}" install -Dm755 hyperrogue "$pkgdir/usr/bin/hyperrogue" - if [[ -z "$_music" ]]; then - return - fi - install -Dm644 hyperrogue-music.txt "$pkgdir/usr/share/hyperrogue/hyperrogue-music.txt" - cd "$srcdir/$pkgname${_pkgver}" - cp *.ogg "$pkgdir/usr/share/hyperrogue/" } |