# Contributor: Thomas Kienlen # Maintainer: Thomas Kienlen pkgname=tuxpaint pkgver=0.9.30 pkgrel=0 pkgdesc="Drawing program designed for young children" # useless on s390x arch="all !s390x" url="https://tuxpaint.org/" license="GPL-2.0-or-later" depends=" hicolor-icon-theme xdg-utils " makedepends=" gperf imagemagick libimagequant-dev libpaper-dev librsvg-dev sdl2-dev sdl2_gfx-dev sdl2_image-dev sdl2_mixer-dev sdl2_pango-dev sdl2_ttf-dev " subpackages="$pkgname-doc $pkgname-lang" source="$pkgname-$pkgver.tar.gz::https://sourceforge.net/projects/tuxpaint/files/tuxpaint/$pkgver/tuxpaint-$pkgver.tar.gz/download" options="!check" # no test suite prepare() { default_prepare # Set fullscreen native resolution by default sed -i \ -e 's/# fullscreen=.*/fullscreen=yes/' \ -e 's/# native=.*/native=yes/' \ src/tuxpaint.conf } build() { make -j1 CFLAGS="$CFLAGS $(pkg-config --cflags pango)" PREFIX=/usr } package() { make -j1 \ PREFIX=/usr \ GNOME_PREFIX=/usr \ X11_ICON_PREFIX="$pkgdir"/usr/share/pixmaps \ DESTDIR="$pkgdir" \ install # remove precompiled example rm "$pkgdir"/usr/share/doc/tuxpaint-$pkgver/en/example.so rm "$pkgdir"/usr/share/doc/tuxpaint-$pkgver/en/tp_magic_example.so install -Dm644 src/$pkgname.desktop \ "$pkgdir"/usr/share/applications/$pkgname.desktop } sha512sums=" afe06556fa4863290a838cdbd0c4ed5832f4ef2090be131492e0d6b8f05bfa09b1a723a22f22813a54b972c5458033d392d16eed0c0aafa26d6695423c9bfe4a tuxpaint-0.9.30.tar.gz "