summaryrefslogtreecommitdiff
path: root/pcr/freedoom
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2020-08-10 02:10:49 -0400
committerbill-auger <mr.j.spam.me@gmail.com>2020-08-10 21:16:59 -0400
commit62e9e2dc53bc433f7c17a1897c87764f2fb60594 (patch)
tree00c9d7a1b5e3a0a94903d7b6a8eca43e361f7591 /pcr/freedoom
parent48a90dba057db4832ae7c880c8c1a7ae36b913ea (diff)
downloadabslibre-62e9e2dc53bc433f7c17a1897c87764f2fb60594.tar.gz
abslibre-62e9e2dc53bc433f7c17a1897c87764f2fb60594.tar.bz2
abslibre-62e9e2dc53bc433f7c17a1897c87764f2fb60594.zip
[freedoom]: upgrade to v0.12.1
Diffstat (limited to 'pcr/freedoom')
-rw-r--r--pcr/freedoom/PKGBUILD40
-rw-r--r--pcr/freedoom/supported-engines.patch13
2 files changed, 42 insertions, 11 deletions
diff --git a/pcr/freedoom/PKGBUILD b/pcr/freedoom/PKGBUILD
index 06bd45e8a..2ddcfda2f 100644
--- a/pcr/freedoom/PKGBUILD
+++ b/pcr/freedoom/PKGBUILD
@@ -2,24 +2,42 @@
# Maintainer (Hyperbola): André Silva <emulatorman@hyperbola.info>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
-pkgname=freedoom
-pkgver=0.11.3
+pkgname=(freedoom freedm)
+pkgbase=${pkgname[0]}
+pkgver=0.12.1
pkgrel=1
pkgdesc="Free game based on the Doom engine"
arch=('any')
url="https://freedoom.github.io/"
-license=('BSD')
-makedepends=('asciidoc' 'deutex' 'imagemagick' 'python' 'ttf-dejavu')
-source=($pkgname-$pkgver.tar.gz::https://github.com/freedoom/freedoom/archive/v$pkgver.tar.gz)
-sha512sums=('51e0d5f7ca7c846c556fcba36b0f9c815090bfc76a80200aebd1526291da16b71145fbe254100cc5ad37ffc044d4380ef07b8bd4bdb811f00b9150e7b34dd636')
+license=('BSD3')
+makedepends=('asciidoc' 'deutex' 'python' 'python-pillow')
+source=(https://github.com/$pkgbase/$pkgbase/releases/download/v$pkgver/$pkgbase-$pkgver.tar.xz
+ supported-engines.patch)
+sha512sums=('08a8489e1bbd9418262bfefaa9afe67a281b6f3fd38f77ac822438da434229bb034077e53658c06fa93cbf3ba3c5c25dab5fe1844fe23043e310d21866e12810'
+ 'af579e5b34e7c59931777c7fcdfe62657d4e04dd5182aa4d81159d661200b20b7e83fed25f9061bc0ca21edc1b07195a50ead56e193dfb98512e28b24602334c')
+
+prepare() {
+ cd "$pkgbase-$pkgver"
+
+ patch -Np1 < "$srcdir"/supported-engines.patch
+}
build() {
- cd $pkgname-$pkgver
+ cd "$pkgbase-$pkgver"
+
make
}
-package() {
- cd $pkgname-$pkgver
- make install DESTDIR="$pkgdir" prefix=/usr
- install -Dm644 COPYING.adoc "$pkgdir"/usr/share/licenses/freedoom/COPYING
+package_freedm() {
+ cd "$pkgbase-$pkgver"
+ make prefix=/usr DESTDIR="$pkgdir" install-freedm
+
+ install -Dm644 COPYING.adoc "$pkgdir/usr/share/licenses/$pkgname/COPYING"
+}
+
+package_freedoom() {
+ cd "$pkgbase-$pkgver"
+ make prefix=/usr DESTDIR="$pkgdir" install-freedoom
+
+ install -Dm644 COPYING.adoc "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}
diff --git a/pcr/freedoom/supported-engines.patch b/pcr/freedoom/supported-engines.patch
new file mode 100644
index 000000000..6c2d08533
--- /dev/null
+++ b/pcr/freedoom/supported-engines.patch
@@ -0,0 +1,13 @@
+diff --git a/pcr/freedoom/freedoom b/pcr/freedoom/freedoom
+index 0b045ced0..c9501d583 100644
+--- a/dist/freedoom
++++ b/dist/freedoom
+@@ -83,7 +83,7 @@ done
+ cat <<EOF >&2
+ $(basename "$0") could not locate nor launch a Doom engine. Most
+ likely, you simply need to install one, check your distribution
+-package repositories for names such as "odamex" or "chocolate-doom" or
++package repositories for names such as "odamex" or "prboom", or
+ seek out one and install it manually.
+
+ If you believe you already have one, you may just need to modify your