30 lines
1.1 KiB
Bash
30 lines
1.1 KiB
Bash
# Template file for 'tuxpaint'
|
|
pkgname=tuxpaint
|
|
version=0.9.31
|
|
revision=2
|
|
build_style=gnu-makefile
|
|
conf_files="/etc/tuxpaint/tuxpaint.conf"
|
|
hostmakedepends="gettext gperf pkg-config ImageMagick"
|
|
makedepends="SDL2-devel SDL2_image-devel SDL2_mixer-devel SDL2_ttf-devel
|
|
SDL2_gfx-devel SDL2_Pango-devel
|
|
cairo-devel fribidi-devel libimagequant-devel libpaper-devel librsvg-devel"
|
|
short_desc="Free, award-winning drawing program for children ages 3 to 12"
|
|
maintainer="Piotr Wójcik <chocimier@tlen.pl>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://www.tuxpaint.org/"
|
|
distfiles="${SOURCEFORGE_SITE}/tuxpaint/${version}/tuxpaint-${version}.tar.gz"
|
|
checksum=1a85c04fa5c9ae6b3ffd2ca8fa86a84c0c8b462b5059fa1fc2c445b5cfa857ee
|
|
replaces="tuxpaint-data>=0"
|
|
CFLAGS="-D_GNU_SOURCE -D_POSIX_PRIORITY_SCHEDULING"
|
|
|
|
pre_build() {
|
|
vsed -i Makefile -e s,/etc/bash_completion.d,/usr/share/bash-completion/completions,
|
|
}
|
|
|
|
post_install() {
|
|
vinstall src/tuxpaint.desktop 644 usr/share/applications
|
|
# python 2
|
|
rm "${DESTDIR}/usr/share/doc/tuxpaint-${version}/outdated/zh_tw/mkTuxpaintIM.py" \
|
|
"${DESTDIR}/usr/share/tuxpaint/fonts/locale/zh_tw_docs/maketuxfont.py"
|
|
}
|