summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKyle Keen2020-08-16 17:10:00 -0400
committerKyle Keen2020-08-16 17:10:00 -0400
commitb7241933a87305a9ca3ce0e6c97b3857fd6deaa4 (patch)
tree02f73d68ed7dc23fe9896d212f7fc7c720e9e6fe
parent22293afbfd07f936a466997f96d5a029cfe6de62 (diff)
downloadaur-xscorch.tar.gz
use debian sources and patches
-rw-r--r--.SRCINFO10
-rw-r--r--PKGBUILD20
2 files changed, 22 insertions, 8 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 5d0babcef48..0f1b8c9266b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,16 +1,20 @@
+# Generated by mksrcinfo v8
+# Sun Aug 16 21:09:57 UTC 2020
pkgbase = xscorch
pkgdesc = A clone of the classic DOS game Scorched Earth
pkgver = 0.2.1
- pkgrel = 2
- url = http://xscorch.org
+ pkgrel = 3
+ url = https://packages.debian.org/sid/games/xscorch
arch = i686
arch = x86_64
license = GPL2
depends = gtk2
depends = libmikmod
- source = http://xscorch.org/releases/xscorch-0.2.1.tar.gz
+ source = http://deb.debian.org/debian/pool/main/x/xscorch/xscorch_0.2.1.orig.tar.gz
+ source = http://deb.debian.org/debian/pool/main/x/xscorch/xscorch_0.2.1-1+nmu4.debian.tar.xz
source = xscorch.desktop
md5sums = 9c3a08cc97242ff9a1fad010dc40d9a7
+ md5sums = adc98fc3984ee26b23d78816b65241b8
md5sums = 31b8021889053c13058b13c79af87d48
pkgname = xscorch
diff --git a/PKGBUILD b/PKGBUILD
index 2db7c929d7e..b596f3db289 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,20 +5,30 @@
pkgname=xscorch
pkgver=0.2.1
-pkgrel=2
+pkgrel=3
pkgdesc="A clone of the classic DOS game Scorched Earth"
depends=('gtk2' 'libmikmod')
arch=('i686' 'x86_64')
license=('GPL2')
-url="http://xscorch.org"
-source=($url/releases/$pkgname-$pkgver.tar.gz
- $pkgname.desktop)
+#url="http://xscorch.org"
+#url="http://freshmeat.sourceforge.net/projects/xscorch"
+url="https://packages.debian.org/sid/games/xscorch"
+source=("http://deb.debian.org/debian/pool/main/x/xscorch/xscorch_$pkgver.orig.tar.gz"
+ "http://deb.debian.org/debian/pool/main/x/xscorch/xscorch_$pkgver-1+nmu4.debian.tar.xz"
+ "$pkgname.desktop")
md5sums=('9c3a08cc97242ff9a1fad010dc40d9a7'
+ 'adc98fc3984ee26b23d78816b65241b8'
'31b8021889053c13058b13c79af87d48')
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver"
+ patch -p1 -i "$srcdir/debian/patches/overlapping-memcpy"
+ patch -p1 -i "$srcdir/debian/patches/gdk-include"
+ patch -p1 -i "$srcdir/debian/patches/gcc10.patch"
+}
+
build() {
cd "$srcdir/$pkgname-$pkgver"
- sed -i 's|MEMCPY|MEMMOVE|' libj/jstr/str_trim.c
./configure --prefix=/usr
make
}