summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 88f33f214e910100fa3a7cd148231ef320b487b4 (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}-localver"
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=v0.9.5.85
pkgrel=2
depends=('return-to-the-roots')
makedepends=('return-to-the-roots') # Needed for pkgver()
optdepends=('widelands: To play the maps with widelands.')
provides=("${_pkgname}=${pkgver}")
conflicts=("${_pkgname}")
replaces=()
license=('GPL2')
options+=('emptydirs')
source=()
sha256sums=()

pkgver() {
  # Set the pkgver to that of the installed return-to-the-root.
  pacman -Q return-to-the-roots | 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"
}