blob: 90561c4d4137edd984c2e0b9dabe6c761effae77 (
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Original AUR Maintainer: Vladimir Panteleev <arch-pkg at thecybershadow.net>
# Current Maintainer: Dylan Morrison <dylanjmorrison611 at gmail.com>
pkgname=megazeux
pkgver=2.93b
pkgrel=1
pkgdesc="Game creation system"
arch=('i686' 'x86_64')
url="https://www.digitalmzx.com/"
license=('gpl')
groups=('games')
depends=(libvorbis libpng sdl2)
makedepends=()
_base=mzx${pkgver/.}
_filename=${_base}src.tar.xz
# To get the _rid from upstream, look at the last page of
# https://www.digitalmzx.com/search.php?browse=4&desc=recordReleaseDate.
# Look for the "Source Code" download.
_rid=2865
# To get the _sha256sum from upstream, open the link from the table in the step
# above, and look at the target of the download link in the sidebar on the left.
_sha256sum=955549c4931bdb23da47c5be84957092f30a1521fd7ec6db01848924fbd59949
# download.php URL: Identifies the download using the Megazeux version.
#source=("${_filename}::https://www.digitalmzx.com/download.php?latest=src&ver=${pkgver}")
# download/ URL: Identifies the download using a site-specific "rid",
# and a SHA-256 checksum of the file. We prefer this one as it allows
# us to use the checksum from upstream (as opposed to what a packager
# downloaded). The sha256sum is part of the URL, so it is used both
# to identify the download and to validate the file.
source=("${_filename}::https://www.digitalmzx.com/download/${_rid}/${_sha256sum}/")
sha256sums=("${_sha256sum}")
build() {
cd "${srcdir}/${_base}"
./config.sh \
--platform unix \
--prefix /usr \
--bindir /usr/lib/megazeux \
--gamesdir /usr/bin \
--enable-release \
--enable-lto
echo 'RAWLIBDIR=lib' >> platform.inc
echo 'LIBDIR=/usr/lib' >> platform.inc
make
}
package() {
cd "${srcdir}/${_base}"
make DESTDIR="$pkgdir/" install
}
# Local Variables:
# pkgbuild-update-sums-on-save: nil
# End:
|