From 734099aef1e84b16d1f6ad1efb69aab659a9ccf4 Mon Sep 17 00:00:00 2001 From: milisarge Date: Tue, 27 Jun 2017 21:05:43 +0300 Subject: [PATCH] tuxmath.paketlendi --- talimatname/genel/t4k-common/libpng15.patch | 18 ++++++++++++ talimatname/genel/t4k-common/talimat | 21 ++++++++++++++ talimatname/genel/tuxmath/talimat | 31 +++++++++++++++++++++ talimatname/genel/tuxmath/tuxmath.desktop | 18 ++++++++++++ 4 files changed, 88 insertions(+) create mode 100644 talimatname/genel/t4k-common/libpng15.patch create mode 100644 talimatname/genel/t4k-common/talimat create mode 100644 talimatname/genel/tuxmath/talimat create mode 100644 talimatname/genel/tuxmath/tuxmath.desktop diff --git a/talimatname/genel/t4k-common/libpng15.patch b/talimatname/genel/t4k-common/libpng15.patch new file mode 100644 index 000000000..29991544d --- /dev/null +++ b/talimatname/genel/t4k-common/libpng15.patch @@ -0,0 +1,18 @@ +--- src/t4k_common-0.1.1/src/t4k_loaders.c 2011-04-08 05:46:07.000000000 +0300 ++++ src.new/t4k_common-0.1.1/src/t4k_loaders.c 2012-05-02 10:35:41.836670434 +0300 +@@ -1028,12 +1028,9 @@ + { + png_init_io(png_ptr, fi); + +- info_ptr->width = surf->w; +- info_ptr->height = surf->h; +- info_ptr->bit_depth = 8; +- info_ptr->color_type = PNG_COLOR_TYPE_RGB_ALPHA; +- info_ptr->interlace_type = 1; +- info_ptr->valid = 0; /* will be updated by various png_set_FOO() functions */ ++ png_set_IHDR(png_ptr, info_ptr, surf->w, surf->h, 8, ++ PNG_COLOR_TYPE_RGB_ALPHA, 1, ++ PNG_COMPRESSION_TYPE_BASE, PNG_FILTER_TYPE_BASE); + + png_set_sRGB_gAMA_and_cHRM(png_ptr, info_ptr, + PNG_sRGB_INTENT_PERCEPTUAL); diff --git a/talimatname/genel/t4k-common/talimat b/talimatname/genel/t4k-common/talimat new file mode 100644 index 000000000..c1e6e267f --- /dev/null +++ b/talimatname/genel/t4k-common/talimat @@ -0,0 +1,21 @@ +# Description: TuxType ve TuxMath tarafından paylaşılan kod için ortak kütüphane +# URL: http://tux4kids.alioth.debian.org/ +# Packager: Cihan Alkan +# Depends on: sdl-image sdl-mixer sdl-net sdl-ttf sdl-pango librsvg + +name=t4k-common +_name=t4k_common +version=0.1.1 +release=1 + +source=(http://downloads.sourceforge.net/project/tuxmath/$_name/$_name-$version.tar.gz + libpng15.patch) + + +build() { + cd $SRC/$_name-$version + patch -Np2 -i "$SRC/libpng15.patch" + ./configure --prefix=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/tuxmath/talimat b/talimatname/genel/tuxmath/talimat new file mode 100644 index 000000000..2363e8231 --- /dev/null +++ b/talimatname/genel/tuxmath/talimat @@ -0,0 +1,31 @@ +# Description: Çocukların matematik gerçeklerini uygulamalarına yardımcı olan bir arcade oyunu +# URL: http://tux4kids.alioth.debian.org/ +# Packager: Cihan Alkan +# Depends on: t4k-common + +name=tuxmath +version=2.0.3 +release=1 + +source=(http://distro.ibiblio.org/slitaz/sources/packages/t/tuxmath_w_fonts-2.0.3.tar.gz + tuxmath.desktop) + + +build() { + cd tuxmath_w_fonts-2.0.3 + + ./configure --prefix=/usr + + make + make DESTDIR=$PKG install + # install .desktop dosyası ve simge + mkdir -p $PKG/usr/share/{applications,pixmaps} + install -D $SRC/tuxmath.desktop $PKG/usr/share/applications/tuxmath.desktop + install -D -m644 data/images/icons/icon.png $PKG/usr/share/pixmaps/tuxmath.png + + # install lisans + install -D -m644 doc/OFL \ + $PKG/usr/share/licenses/$name/OFL + install -D -m644 doc/README_DATA_LICENSES \ + $PKG/usr/share/licenses/$name/DATA_LICENSES +} diff --git a/talimatname/genel/tuxmath/tuxmath.desktop b/talimatname/genel/tuxmath/tuxmath.desktop new file mode 100644 index 000000000..a9c287aa6 --- /dev/null +++ b/talimatname/genel/tuxmath/tuxmath.desktop @@ -0,0 +1,18 @@ +[Desktop Entry] +Name=Tux Math +GenericName=Educational math game +GenericName[de]=Mathe Spiel +GenericName[ru]=Образовательная игра +GenericName[tr]=Matematik Oyunu +Comment=Tux Math - Learn math with Tux! +Comment[pl]=Tux Math - Ucz siê matematyki z Tuxem! +Comment[de]=Tux Math - Lerne Mathe mit Tux! +Comment[ru]=Обучение арифметике с пингвином в главной роли +Comment[tr]=Eğitici Matematik Oyunu +Exec=tuxmath +Icon=tuxmath +Type=Application +Terminal=false +Categories=Education;Math; +## X-SuSE-translate=false +X-Ubuntu-Gettext-Domain=tuxmath