diff options
author | Michel Zou | 2018-09-13 20:01:29 +0200 |
---|---|---|
committer | Michel Zou | 2018-09-13 20:01:29 +0200 |
commit | c29ef22d02be2b2ea72b035c80fa4b966626f4bc (patch) | |
tree | 698f67eb07ad7c4e23211ef3aa6f53b73fe613a2 | |
parent | 6cafe8549caec04d07b8159b582d67df48a026fb (diff) | |
download | aur-c29ef22d02be2b2ea72b035c80fa4b966626f4bc.tar.gz |
1.4.0
-rw-r--r-- | .SRCINFO | 9 | ||||
-rw-r--r-- | PKGBUILD | 21 |
2 files changed, 12 insertions, 18 deletions
@@ -1,19 +1,18 @@ -# Generated by mksrcinfo v8 -# Tue Feb 14 19:51:56 UTC 2017 pkgbase = mingw-gl2ps pkgdesc = an OpenGL to PostScript printing library (mingw-w64) - pkgver = 1.3.9 + pkgver = 1.4.0 pkgrel = 1 url = http://geuz.org/gl2ps/ arch = any license = LGPL makedepends = mingw-w64-cmake depends = mingw-w64-libpng + depends = mingw-w64-freeglut options = !buildflags options = !strip options = staticlibs - source = http://geuz.org/gl2ps/src/gl2ps-1.3.9.tgz - sha512sums = e6770c27d4832a300b4e16a9f98deb8557e7875460e7aa7e655fdb796f5dfffd5eccdc8b15f5a3ae151713fc46f97dacad48ee7550c41373b6fc8cfd21a437cb + source = http://geuz.org/gl2ps/src/gl2ps-1.4.0.tgz + sha256sums = 03cb5e6dfcd87183f3b9ba3b22f04cd155096af81e52988cc37d8d8efe6cf1e2 pkgname = mingw-gl2ps @@ -1,33 +1,30 @@ pkgname=mingw-gl2ps -pkgver=1.3.9 +pkgver=1.4.0 pkgrel=1 pkgdesc="an OpenGL to PostScript printing library (mingw-w64)" arch=('any') url='http://geuz.org/gl2ps/' license=('LGPL') -depends=('mingw-w64-libpng') +depends=('mingw-w64-libpng' 'mingw-w64-freeglut') makedepends=('mingw-w64-cmake') options=('!buildflags' '!strip' 'staticlibs') source=("http://geuz.org/gl2ps/src/gl2ps-${pkgver}.tgz") -sha512sums=('e6770c27d4832a300b4e16a9f98deb8557e7875460e7aa7e655fdb796f5dfffd5eccdc8b15f5a3ae151713fc46f97dacad48ee7550c41373b6fc8cfd21a437cb') +sha256sums=('03cb5e6dfcd87183f3b9ba3b22f04cd155096af81e52988cc37d8d8efe6cf1e2') _architectures="i686-w64-mingw32 x86_64-w64-mingw32" -build() { +prepare() { cd "${srcdir}/gl2ps-${pkgver}-source" - sed -i "/gl2psTest/d" CMakeLists.txt } build() { cd "${srcdir}/gl2ps-${pkgver}-source" for _arch in ${_architectures}; do mkdir -p build-${_arch} && pushd build-${_arch} - ${_arch}-cmake \ - -DCMAKE_BUILD_TYPE=Release \ - -DGLUT_glut_LIBRARY=/usr/${_arch}/lib/libfreeglut.dll.a \ - -DGLUT_LIBRARIES=/usr/${_arch}/lib/libfreeglut.dll.a \ - .. + ${_arch}-cmake -DPDFLATEX_COMPILER=0 \ + -DGLUT_glut_LIBRARY=/usr/${_arch}/lib/libfreeglut.dll.a \ + -DGLUT_LIBRARIES=/usr/${_arch}/lib/libfreeglut.dll.a .. make popd done @@ -39,9 +36,7 @@ package() { make install DESTDIR="$pkgdir" install -d "$pkgdir"/usr/${_arch}/bin mv "$pkgdir"/usr/${_arch}/lib/*.dll "$pkgdir"/usr/${_arch}/bin/ - rm "$pkgdir"/usr/${_arch}/gl2ps* - rm "$pkgdir"/usr/${_arch}/README.txt - rm "$pkgdir"/usr/${_arch}/COPYING* + rm "$pkgdir"/usr/${_arch}/{gl2ps*,README.txt,COPYING*} ${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll ${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a done |