29 lines
906 B
Bash
29 lines
906 B
Bash
# Template file for '0ad-data'
|
|
pkgname=0ad-data
|
|
version=0.0.24
|
|
revision=1
|
|
create_wrksrc=yes
|
|
short_desc="Historically-based real-time strategy game (data files)"
|
|
maintainer="Helmut Pozimski <helmut@pozimski.eu>"
|
|
license="CC-BY-SA-3.0"
|
|
homepage="https://play0ad.com"
|
|
distfiles="https://releases.wildfiregames.com/0ad-${version}-alpha-unix-data.tar.xz"
|
|
checksum=929a55a6aa63c143b7fd20553375878a2e732353dbbcc757fa876b4181fdd75a
|
|
nocross=yes
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
x86_64*|i686*|aarch64*|armv7l*|ppc64le*) ;;
|
|
*) broken="no base game available";;
|
|
esac
|
|
|
|
do_extract() {
|
|
bsdtar xJf ${XBPS_SRCDISTDIR}/${pkgname}-${version}/0ad-${version}-alpha-unix-data.tar.xz -C ${wrksrc}
|
|
}
|
|
|
|
do_install() {
|
|
vmkdir usr/share/0ad/data
|
|
vmkdir usr/share/0ad/data/tools
|
|
vcopy binaries/data/mods usr/share/0ad/data
|
|
vcopy binaries/data/config usr/share/0ad/data
|
|
vcopy binaries/data/tools/atlas usr/share/0ad/data/tools
|
|
}
|