Skip to content

Commit

Permalink
gl2ps: update to 1.4.0 (#3838)
Browse files Browse the repository at this point in the history
This updates gl2ps to 1.4.0.
  • Loading branch information
Adsun701 authored and Alexpux committed May 28, 2018
1 parent 4648df1 commit 3a4643b
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions mingw-w64-gl2ps/PKGBUILD
Expand Up @@ -6,17 +6,18 @@
_realname=gl2ps
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=1.3.8
pkgrel=4
pkgver=1.4.0
pkgrel=1
pkgdesc="an OpenGL to PostScript printing library (mingw-w64)"
arch=('any')
url='https://geuz.org/gl2ps/'
license=('BSD')
depends=("${MINGW_PACKAGE_PREFIX}-libpng")
makedepends=("${MINGW_PACKAGE_PREFIX}-cmake"
"${MINGW_PACKAGE_PREFIX}-gcc")
source=("https://geuz.org/gl2ps/src/gl2ps-${pkgver}.tgz"
"0001-MSYS2-FHS-layout.patch")
sha256sums=('2fe58dd95df06688a8c188e70b1803093ebf0797954901f4a36a403dbc301ee5'
sha256sums=('03cb5e6dfcd87183f3b9ba3b22f04cd155096af81e52988cc37d8d8efe6cf1e2'
'17815c4ba80f90744a149bb130a5e06fc4e3489681ad180562b42f67d159839b')

prepare() {
Expand All @@ -34,6 +35,7 @@ build() {
-G"MSYS Makefiles" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=${MINGW_PREFIX} \
-DMATH_LIBRARY=${MINGW_PREFIX}/${MINGW_CHOST}/lib/libm.a \
../${_realname}-${pkgver}-source

make
Expand All @@ -42,4 +44,7 @@ build() {
package() {
cd "${srcdir}/build-${MINGW_CHOST}"
make DESTDIR=${pkgdir} install
# install dll correctly
mkdir -p ${pkgdir}${MINGW_PREFIX}/bin
mv ${pkgdir}${MINGW_PREFIX}/lib/libgl2ps.dll ${pkgdir}${MINGW_PREFIX}/bin/libgl2ps.dll
}

0 comments on commit 3a4643b

Please sign in to comment.