tesseract: fix license, release version marker, vsed

This commit is contained in:
Colin Booth 2021-05-28 15:13:11 -07:00 committed by Đoàn Trần Công Danh
parent 0f437ced2a
commit 6f964370fc

View file

@ -1,26 +1,27 @@
# Template file for 'tesseract'
pkgname=tesseract
version=1
revision=4
revision=5
_release="2014_05_12"
wrksrc="$pkgname"
hostmakedepends="pkg-config ImageMagick"
makedepends="SDL2_image-devel SDL2_mixer-devel MesaLib-devel libpng-devel zlib-devel"
depends="desktop-file-utils hicolor-icon-theme"
short_desc="FPS game focused on instagib deathmatch and capture-the-flag gameplay"
maintainer="Orphaned <orphan@voidlinux.org>"
license="zlib"
license="Zlib"
homepage="http://tesseract.gg/"
distfiles="http://download.tuxfamily.org/tesseract/tesseract_2014_05_12_first_edition_linux.tar.xz"
distfiles="http://download.tuxfamily.org/tesseract/tesseract_${_release}_first_edition_linux.tar.xz"
checksum=8d6e07dd154a40a3f593e52289335c036f06cf90a0ebc400c4650adb3395a0f4
pre_build() {
for dim in 16 32 48 64 128 256 512; do
convert -resize "${dim}x${dim}" media/interface/cube.png "${pkgname}${dim}.png"
done
sed -i src/Makefile \
vsed -i src/Makefile \
-e"s;-o tess_client;${LDFLAGS} &;" \
-e"s;-o tess_server;${LDFLAGS} &;"
sed -i src/enet/Makefile \
vsed -i src/enet/Makefile \
-e"s;^\(CFLAGS=\).*;\1${CFLAGS};"
}
do_build() {