[arch-commits] Commit in tuxpaint/trunk (PKGBUILD)
Alexander Rødseth
arodseth at archlinux.org
Wed Sep 27 11:55:49 UTC 2017
Date: Wednesday, September 27, 2017 @ 11:55:48
Author: arodseth
Revision: 260659
upgpkg: tuxpaint 0.9.22-3
Modified:
tuxpaint/trunk/PKGBUILD
----------+
PKGBUILD | 38 +++++++++++++++++++-------------------
1 file changed, 19 insertions(+), 19 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-09-27 11:25:58 UTC (rev 260658)
+++ PKGBUILD 2017-09-27 11:55:48 UTC (rev 260659)
@@ -1,5 +1,5 @@
# $Id$
-# Maintainer: Alexander Rødseth <rodseth at gmail.com>
+# Maintainer: Alexander F Rødseth <xyproto at archlinux.org>
# Contributor: Mateusz Herych <heniekk at gmail.com>
# Contributor: Sergio Jovani Guzman <moret.sjg at gmail.com>
# Contributor: royrocks <royrocks13 at gmail.com>
@@ -6,10 +6,10 @@
pkgname=tuxpaint
pkgver=0.9.22
-pkgrel=2
+pkgrel=3
pkgdesc='Drawing program designed for young children'
arch=('x86_64' 'i686')
-url='http://www.tuxpaint.org/'
+url='http://tuxpaint.org/'
license=('GPL')
backup=('etc/tuxpaint/tuxpaint.conf')
depends=('python2' 'fribidi' 'sdl_ttf' 'sdl_mixer' 'sdl_image' 'sdl_pango'
@@ -17,18 +17,12 @@
makedepends=('setconf' 'optipng' 'gperf')
optdepends=('tuxpaint-stamps: more stamps'
'tuxpaint-conf: configuration manager')
-source=("http://downloads.sourceforge.net/sourceforge/tuxpaint/$pkgname-$pkgver.tar.gz")
+source=("https://downloads.sourceforge.net/sourceforge/tuxpaint/$pkgname-$pkgver.tar.gz")
sha256sums=('8abd932f8e36fad795bba0290c094c9c221e424c4b9aa8c763b7fb3459cb2be3')
prepare() {
cd "$pkgname-$pkgver"
- setconf src/tuxpaint.desktop Categories \
- 'Game;KidsGame;Graphics;RasterGraphics;'
-
- # fullscreen
- sed -i 's:# fu:fu:' src/tuxpaint.conf
-
# python2 fix
for f in docs/zh_tw/mkTuxpaintIM.py fonts/locale/zh_tw_docs/maketuxfont.py; do
sed -i '0,/on/s//on2/' $f
@@ -40,30 +34,36 @@
# libpng16 fix
find -name '*.png' -exec optipng -quiet -force -fix {} +
+ # fullscreen by default
+ sed -i 's:# fu:fu:' src/tuxpaint.conf
+
+ # desktop shortcut categories
+ setconf src/tuxpaint.desktop Categories 'Game;KidsGame;Graphics;RasterGraphics;'
+
# bash completion placement
setconf Makefile COMPLETIONDIR '$(DESTDIR)/usr/share/bash-completion/completions'
}
build() {
- cd "$pkgname-$pkgver"
- make clean
- make translations -j1
- make PREFIX=/usr -j1
+ make -C "$pkgname-$pkgver" PREFIX=/usr clean translations all -j1
}
package() {
- ls "$pkgname-$pkgver/trans"
- make -j1 -C "$pkgname-$pkgver" \
+ make -C "$pkgname-$pkgver" \
PREFIX=/usr \
- DESTDIR="$pkgdir" \
GNOME_PREFIX=/usr \
X11_ICON_PREFIX="$pkgdir/usr/share/pixmaps" \
- install
+ DESTDIR="$pkgdir" \
+ install -j1
+
+ # fix permissions
chmod -R 644 "$pkgdir/usr/share/doc/tuxpaint-dev/"*
chmod 755 "$pkgdir/usr/share/doc/tuxpaint-dev/html"
+
+ # bash completions
mv "$pkgdir/usr/share/bash-completion/completions/tuxpaint-completion.bash" \
"$pkgdir/usr/share/bash-completion/completions/tuxpaint"
}
# getver: tuxpaint.org/download/source
-# vim:set ts=2 sw=2 et:
+# vim:ts=2 sw=2 et:
More information about the arch-commits
mailing list