void-packages/srcpkgs/7kaa/template

34 lines
992 B
Bash

# Template file for '7kaa'
pkgname=7kaa
version=2.15.4p1
revision=2
_v_7kaa_music=${version%.*}
create_wrksrc=yes
build_wrksrc=7kaa
build_style=gnu-configure
hostmakedepends="autoconf automake gettext-devel pkg-config tar"
makedepends="libcurl-devel libenet-devel libopenal-devel SDL2-devel"
short_desc="Seven Kingdoms: Ancient Adversaries"
maintainer="travankor <travankor@tuta.io>"
license="GPL-2.0-or-later"
homepage="https://7kfans.com/"
distfiles="https://github.com/the3dfxdude/7kaa/releases/download/v${version}/${pkgname}-${version}.tar.xz
https://www.7kfans.com/downloads/${pkgname}-music-${_v_7kaa_music}.tar.bz2"
checksum="f0265c077025d77b435f1c10b8ba178bdb16329e51ab735330ebaa71a104fbf8
b0d767b6e25719a14f5f34a93744a8022d7bc24af66275bee54dfc788695c1c3"
replaces="7kaa-data>=0"
post_extract() {
mv 7kaa-${version} 7kaa
mv 7kaa-music 7kaa
}
pre_configure() {
autoreconf -vfi
}
post_install() {
vcopy 7kaa-music/MUSIC usr/share/7kaa
vlicense 7kaa-music/COPYING-Music.txt
}