diff options
author | xantares | 2015-06-08 23:48:43 +0200 |
---|---|---|
committer | xantares | 2015-06-08 23:48:43 +0200 |
commit | 8f144244f41ecaf38ea569656df88bbe7280c7fe (patch) | |
tree | b8b86fe543b5dd69a3caaa7bc207d0f83fd10b29 | |
download | aur-8f144244f41ecaf38ea569656df88bbe7280c7fe.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 34 |
2 files changed, 51 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..755146181e50 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = mingw-w64-sdl2_gfx + pkgdesc = SDL Graphic Primitives (Version 2) (mingw-w64) + pkgver = 1.0.0 + pkgrel = 2 + url = http://www.ferzkopp.net/joomla/software-mainmenu-14/4-ferzkopps-linux-software/19-sdlgfx + arch = any + license = zlib + makedepends = mingw-w64-configure + depends = mingw-w64-sdl2 + options = staticlibs + options = !strip + options = !buildflags + source = http://www.ferzkopp.net/Software/SDL2_gfx/SDL2_gfx-1.0.0.tar.gz + md5sums = f008cc117cb901aec6bf5c2f0b11f7ea + +pkgname = mingw-w64-sdl2_gfx + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..1d87a9098ab7 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +pkgname=mingw-w64-sdl2_gfx +pkgver=1.0.0 +pkgrel=2 +pkgdesc="SDL Graphic Primitives (Version 2) (mingw-w64)" +arch=(any) +url="http://www.ferzkopp.net/joomla/software-mainmenu-14/4-ferzkopps-linux-software/19-sdlgfx" +license=("zlib") +depends=(mingw-w64-sdl2) +makedepends=(mingw-w64-configure) +options=(staticlibs !strip !buildflags) +source=("http://www.ferzkopp.net/Software/SDL2_gfx/SDL2_gfx-${pkgver}.tar.gz") +md5sums=('f008cc117cb901aec6bf5c2f0b11f7ea') + +_architectures="i686-w64-mingw32 x86_64-w64-mingw32" + +build() { + cd "${srcdir}/SDL2_gfx-${pkgver}" + for _arch in ${_architectures}; do + mkdir -p build-${_arch} && pushd build-${_arch} + ${_arch}-configure + sed -i "s/deplibs_check_method=.*/deplibs_check_method=pass_all/g" libtool + make + popd + done +} + +package() { + for _arch in ${_architectures}; do + cd "${srcdir}/SDL2_gfx-${pkgver}/build-${_arch}" + make DESTDIR="$pkgdir" install + ${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll + ${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a + done +} |