summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorfelics2018-09-02 14:55:38 +0200
committerfelics2018-09-02 14:55:38 +0200
commita506e748ef016f99cf6bb1acd78572f7f0a7cd4c (patch)
tree1beb0edd5d1b08511227c10cec14bb8a01fdf07a
downloadaur-a506e748ef016f99cf6bb1acd78572f7f0a7cd4c.tar.gz
Initial Commit
-rw-r--r--.SRCINFO13
-rw-r--r--PKGBUILD45
2 files changed, 58 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..769e2ff384f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,13 @@
+pkgbase = widelands-maps-einstein
+ pkgdesc = Maps for widelands by user 'einstein'.
+ pkgver = 20160627
+ pkgrel = 1
+ url = http://wuatek.no-ip.org/~rak/widelands/?page=2
+ arch = any
+ license = GPL2
+ optdepends = widelands: To play the game.
+ source = PackageXL.zip::http://wuatek.no-ip.org/~rak/widelands/respondDownload.php?link=PackageXL_2016-06-27
+ sha256sums = c58c08a1057404e767b3c13eaa7f35907a24ebd3bc436d851a37a7da5a3a01fd
+
+pkgname = widelands-maps-einstein
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..29ce23acae0
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,45 @@
+# Maintainer: dreieck
+
+pkgname=widelands-maps-einstein
+_pkgver_year=2016
+_pkgver_month=06
+_pkgver_day=27
+pkgver="${_pkgver_year}${_pkgver_month}${_pkgver_day}"
+pkgrel=1
+pkgdesc="Maps for widelands by user 'einstein'."
+arch=('any')
+url="http://wuatek.no-ip.org/~rak/widelands/?page=2"
+license=('GPL2')
+optdepends=(
+ "widelands: To play the game."
+)
+source=(
+ "PackageXL.zip::http://wuatek.no-ip.org/~rak/widelands/respondDownload.php?link=PackageXL_${_pkgver_year}-${_pkgver_month}-${_pkgver_day}"
+)
+sha256sums=(
+ "c58c08a1057404e767b3c13eaa7f35907a24ebd3bc436d851a37a7da5a3a01fd"
+)
+
+build() {
+ cd "${srcdir}"
+
+ # To not change the upstream source, work in a build directory:
+ mkdir "${srcdir}/build"
+ cp -a "${srcdir}/PackageXL"/*.wmf "${srcdir}/build"/
+
+ # Set permissions:
+ chmod 644 "${srcdir}/build"/*.wmf
+
+ # Remove maps which are already present in the official stable widelands build:
+ rm -fv "${srcdir}/build"/{Calvisson,Impact,Wideworld}.wmf
+}
+
+package() {
+ cd "${srcdir}/PackageXL"
+
+ # Create target directory:
+ install -v -d -m755 "${pkgdir}/usr/share/widelands/maps/"
+
+ # Copy maps to target directory:
+ cp -v "${srcdir}/build"/*.wmf "${pkgdir}/usr/share/widelands/maps"/
+}