milis/talimatname/genel/t/tuxpaint/talimat

53 lines
1.4 KiB
Plaintext
Raw Normal View History

2017-10-27 20:46:27 +02:00
# Tanım: Küçük çocuklar için tasarlanmış çizim programı
2017-10-07 22:46:15 +02:00
# URL: http://tuxpaint.org/
2017-10-27 20:46:27 +02:00
# Paketçi: Cihan Alkan
# Gerekler: optipng setconf sdl-ttf sdl-mixer python fribidi sdl-image sdl-pango libpaper librsvg
2017-10-07 22:46:15 +02:00
name=tuxpaint
version=0.9.22
release=1
source=(https://downloads.sourceforge.net/sourceforge/tuxpaint/$name-$version.tar.gz)
2017-10-27 23:59:41 +02:00
derle() {
2017-10-07 22:46:15 +02:00
cd $name-$version
# 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
done
# libpng15 fix
sed -i 's:$(ARCH_LINKS):$(ARCH_LINKS) -lpng:' Makefile
# 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'
cd $SRC
make -C "$name-$version" PREFIX=/usr clean translations all -j1
make -C "$name-$version" \
PREFIX=/usr \
GNOME_PREFIX=/usr \
X11_ICON_PREFIX="$PKG/usr/share/pixmaps" \
DESTDIR="$PKG" \
install -j1
# fix permissions
chmod -R 644 "$PKG/usr/share/doc/tuxpaint-dev/"*
chmod 755 "$PKG/usr/share/doc/tuxpaint-dev/html"
# bash completions
mv "$PKG/usr/share/bash-completion/completions/tuxpaint-completion.bash" \
"$PKG/usr/share/bash-completion/completions/tuxpaint"
}