diff options
author | Michael Stöcker | 2015-09-20 11:34:05 +0200 |
---|---|---|
committer | Michael Stöcker | 2015-09-20 11:34:05 +0200 |
commit | fd2cb3d7051a671a77ecc11a509a156ad8e97bf4 (patch) | |
tree | 17c985667411075e4fb77429ed3c1e0672541be1 | |
download | aur-t4k_common.tar.gz |
inital commit based on http://pkgbuild.com/git/aur-mirror.git/tree/t4k_common
-rw-r--r-- | .SRCINFO | 22 | ||||
-rw-r--r-- | PKGBUILD | 35 | ||||
-rw-r--r-- | libpng15.patch | 18 |
3 files changed, 75 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..482678e446e0 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,22 @@ +pkgbase = t4k_common + pkgdesc = Common library for code shared by TuxType and TuxMath + pkgver = 0.1.1 + pkgrel = 2 + url = http://tux4kids.alioth.debian.org/ + arch = i686 + arch = x86_64 + license = GPL + makedepends = make + depends = sdl_image + depends = sdl_mixer + depends = sdl_pango + depends = sdl_net + depends = librsvg + options = !docs + source = http://downloads.sourceforge.net/project/tuxmath/t4k_common/t4k_common-0.1.1.tar.gz + source = libpng15.patch + sha1sums = 626eddedee86059ccab593a226c8d98571018b46 + sha1sums = aa909083dec77cf7a0e8c25ef422e05b8a84efe1 + +pkgname = t4k_common + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c98aa55c1ad4 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: Tasos Latsas < tlatsas2000 at gmail dot com > + +pkgname=t4k_common +pkgver=0.1.1 +pkgrel=2 +pkgdesc="Common library for code shared by TuxType and TuxMath" +arch=('i686' 'x86_64') +url="http://tux4kids.alioth.debian.org/" +license=('GPL') +depends=('sdl_image' 'sdl_mixer' 'sdl_pango' 'sdl_net' 'librsvg') +makedepends=('make') +options=('!docs') +source=("http://downloads.sourceforge.net/project/tuxmath/$pkgname/${pkgname}-${pkgver}.tar.gz" + "libpng15.patch") +sha1sums=('626eddedee86059ccab593a226c8d98571018b46' + 'aa909083dec77cf7a0e8c25ef422e05b8a84efe1') + +prepare() { + cd "$srcdir/$pkgname-$pkgver" + patch -Np2 -i "$srcdir/libpng15.patch" +} + +build() { + cd "$srcdir/$pkgname-$pkgver" + ./configure --prefix=/usr + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + + make DESTDIR=$pkgdir install +} + +# vim: ts=2 sw=2 et: diff --git a/libpng15.patch b/libpng15.patch new file mode 100644 index 000000000000..29991544ddbf --- /dev/null +++ b/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); |