summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorfelics2018-09-19 15:19:17 +0200
committerfelics2018-09-19 15:19:17 +0200
commit6424447708caf10a0ec4b8ff60f37d08562135ca (patch)
treebc272ca9ee02e38ba95b422f5739e74efd600682 /PKGBUILD
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.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD10
1 files changed, 9 insertions, 1 deletions
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"
}