tuxpaint.paketlendi
This commit is contained in:
parent
57e65f8348
commit
bacd4e452f
|
@ -0,0 +1,23 @@
|
|||
# Description: PNG dosyalarını herhangi bir bilgi kaybı olmadan daha küçük bir boyuta sıkıştırır.
|
||||
# URL: http://optipng.sourceforge.net/
|
||||
# Packager: Cihan Alkan
|
||||
# Depends on: libpng
|
||||
|
||||
name=optipng
|
||||
version=0.7.6
|
||||
release=1
|
||||
|
||||
source=(http://downloads.sourceforge.net/sourceforge/$name/$name-$version.tar.gz)
|
||||
|
||||
build() {
|
||||
|
||||
cd $name-$version
|
||||
|
||||
./configure --prefix=/usr --mandir=/usr/share/man --with-system-libs
|
||||
make
|
||||
|
||||
make prefix="$PKG/usr" mandir="$PKG/usr/share/man" install
|
||||
|
||||
# install license
|
||||
install -Dm0644 LICENSE.txt "$PKG/usr/share/licenses/$name/LICENSE"
|
||||
}
|
|
@ -0,0 +1,52 @@
|
|||
# Description: Küçük çocuklar için tasarlanmış çizim programı
|
||||
# URL: http://tuxpaint.org/
|
||||
# Packager: Cihan Alkan
|
||||
# Depends on: optipng setconf sdl-ttf sdl-mixer python fribidi sdl-image sdl-pango libpaper librsvg
|
||||
|
||||
name=tuxpaint
|
||||
version=0.9.22
|
||||
release=1
|
||||
|
||||
source=(https://downloads.sourceforge.net/sourceforge/tuxpaint/$name-$version.tar.gz)
|
||||
|
||||
build() {
|
||||
|
||||
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"
|
||||
}
|
Loading…
Reference in New Issue