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
2017-10-28 14:10:23 +02:00
isim=tuxpaint
surum=0.9.22
devir=1
2017-10-07 22:46:15 +02:00
2017-10-28 14:10:23 +02:00
kaynak=(https://downloads.sourceforge.net/sourceforge/tuxpaint/$isim-$surum.tar.gz)
2017-10-07 22:46:15 +02:00
2017-10-27 23:59:41 +02:00
derle() {
2017-10-07 22:46:15 +02:00
2017-10-28 14:10:23 +02:00
cd $isim-$surum
2017-10-07 22:46:15 +02:00
# 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
2017-10-28 14:10:23 +02:00
make -C "$isim-$surum" PREFIX=/usr clean translations all -j1
2017-10-07 22:46:15 +02:00
2017-10-28 14:10:23 +02:00
make -C "$isim-$surum" \
2017-10-07 22:46:15 +02:00
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"
}