summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorfelics2018-09-19 15:19:17 +0200
committerfelics2018-09-19 15:19:17 +0200
commit6424447708caf10a0ec4b8ff60f37d08562135ca (patch)
treebc272ca9ee02e38ba95b422f5739e74efd600682
parent585e1ea72218a0430b69c4cc3d2a328e4474cfcd (diff)
downloadaur-6424447708caf10a0ec4b8ff60f37d08562135ca.tar.gz
Added symlinks of the maps to widelands maps directory, in order to be able to play the mas with widelands.
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD10
2 files changed, 12 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ba24800d82f7..2a22867c0bd5 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = siedler2-data
pkgdesc = Game data files and manual of Blue Byte's 'Siedler II'/'Settlers II' to be used with 'Return to the Roots'.
pkgver = venividivici_gold
- pkgrel = 3
+ pkgrel = 4
url = http://archive.org/details/die_siedler_2_151
arch = any
license = unknown: proprietary
@@ -16,7 +16,9 @@ pkgbase = siedler2-data
pkgname = siedler2-data
pkgdesc = Game data files of Blue Byte's 'Siedler II'/'Settlers II' to be used with 'Return to the Roots'.
optdepends = return-to-the-roots: To play the game.
+ optdepends = widelands: To play the maps with widelands.
optdepends = siedler2-doc: The original Blue Byte manual.
+ provides = widelands-maps-settlers2
pkgname = siedler2-doc
pkgdesc = Manual for Blue Byte's 'Siedler II'/'Settlers II'.
diff --git a/PKGBUILD b/PKGBUILD
index ea0a01002869..a6c3be810506 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,7 +9,7 @@ pkgdesc="Game data files and manual of Blue Byte's 'Siedler II'/'Settlers II' to
url='http://archive.org/details/die_siedler_2_151'
arch=('any')
pkgver='venividivici_gold'
-pkgrel=3
+pkgrel=4
license=('unknown: proprietary')
options+=('emptydirs')
@@ -30,14 +30,22 @@ package_siedler2-data() {
pkgdesc="Game data files of Blue Byte's 'Siedler II'/'Settlers II' to be used with 'Return to the Roots'."
optdepends+=(
"return-to-the-roots: To play the game."
+ "widelands: To play the maps with widelands."
"siedler2-doc: The original Blue Byte manual."
)
+ provides=(
+ "widelands-maps-settlers2"
+ )
cd "${srcdir}"
install -v -m 755 -d "${pkgdir}/usr/share/s25rttr/S2"
cp -av "${srcdir}"/{DATA,GFX} "${pkgdir}/usr/share/s25rttr/S2"/
chmod -R a+Xr "${pkgdir}/usr/share/s25rttr/S2"/*
+ install -v -m755 -d "${pkgdir}/usr/share/widelands/maps/settlers2"
+ cd "${pkgdir}/usr/share/widelands/maps/settlers2"
+ ln -sv /usr/share/s25rttr/S2/DATA/MAPS* .
+
install -v -D -m644 "${srcdir}/license-note.txt" "${pkgdir}/usr/share/licenses/${pkgname}/license-note.txt"
}