blob: 433a8c82c725415a8b89b23706674320b039c0af (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# Maintainer: dreieck
_pkgname="widelands-maps-rttr"
pkgname="${_pkgname}"
pkgdesc="Makes the maps installed by the Settlers II-remake 'Return to the Roots' available to play with widelands."
url='http://siedler25.org/'
arch=('any')
pkgver=r8.20240404.dfb9923
pkgrel=1
depends=('return-to-the-roots-maps')
makedepends=('return-to-the-roots-maps') # Needed for pkgver()
optdepends=('widelands: To play the maps with widelands.')
provides=()
conflicts=()
replaces=("${_pkgname}-localver")
license=('GPL3')
options+=('emptydirs')
source=()
sha256sums=()
pkgver() {
# Set the pkgver to that of the installed return-to-the-root.
pacman -Q return-to-the-roots-maps | awk '{print $2}' | sed 's|-.*||'
}
package() {
install -d -v -m755 "${pkgdir}/usr/share/widelands/maps"
ln -svr "${pkgdir}/usr/share/s25rttr/RTTR/MAPS" "${pkgdir}/usr/share/widelands/maps/Return to the Roots-maps"
}
|