summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichel Zou2018-10-04 18:42:53 +0200
committerMichel Zou2018-10-04 18:42:53 +0200
commit742b2e590845ee56a71557db192936e3930f769f (patch)
tree49c4f5e2c641057f96df344f2cfa1c68441540a6
parenta8556b3c06f6ace1c216ceafbd64d949490905b6 (diff)
downloadaur-742b2e590845ee56a71557db192936e3930f769f.tar.gz
2.2.6
-rw-r--r--.SRCINFO8
-rw-r--r--PKGBUILD28
2 files changed, 9 insertions, 27 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 7cf37d8f4e7..c9ede28552f 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,17 +1,17 @@
pkgbase = mingw-w64-muparser
pkgdesc = A fast math parser library (mingw-w64)
- pkgver = 2.2.5
+ pkgver = 2.2.6.1
pkgrel = 1
url = http://muparser.sourceforge.net/
arch = any
license = MIT
- makedepends = mingw-w64-configure
+ makedepends = mingw-w64-cmake
depends = mingw-w64-crt
options = !buildflags
options = staticlibs
options = !strip
- source = https://github.com/beltoforion/muparser/archive/v2.2.5.tar.gz
- md5sums = 02dae671aa5ad955fdcbcd3fee313fb7
+ source = https://github.com/beltoforion/muparser/archive/v2.2.6.1.tar.gz
+ sha256sums = d2562853d972b6ddb07af47ce8a1cdeeb8bb3fa9e8da308746de391db67897b3
pkgname = mingw-w64-muparser
diff --git a/PKGBUILD b/PKGBUILD
index c28bdddfd41..229dbf29f77 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,44 +1,29 @@
pkgname=mingw-w64-muparser
-pkgver=2.2.5
+pkgver=2.2.6.1
pkgrel=1
pkgdesc="A fast math parser library (mingw-w64)"
arch=('any')
url="http://muparser.sourceforge.net/"
depends=('mingw-w64-crt')
-makedepends=('mingw-w64-configure')
+makedepends=('mingw-w64-cmake')
license=('MIT')
options=('!buildflags' 'staticlibs' '!strip')
source=("https://github.com/beltoforion/muparser/archive/v${pkgver}.tar.gz")
-md5sums=('02dae671aa5ad955fdcbcd3fee313fb7')
+sha256sums=('d2562853d972b6ddb07af47ce8a1cdeeb8bb3fa9e8da308746de391db67897b3')
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
-prepare () {
- cd "$srcdir"/muparser-${pkgver}
-
- # if defined, MUPARSER_DLL macro results in unresolved symbols in dll
- sed -i "/DMUPARSER_DLL/d" Makefile.in
-
- #sed -i "s|//#define MUP_USE_OPENMP|#define MUP_USE_OPENMP|g" include/muParserDef.h
-
- # configure is not executable
- chmod a+x configure
-}
-
build() {
cd "$srcdir"/muparser-${pkgver}
for _arch in ${_architectures}; do
- unset LDFLAGS
mkdir -p build-${_arch}-static && pushd build-${_arch}-static
- ${_arch}-configure --disable-shared \
- --disable-samples
+ ${_arch}-cmake -DBUILD_SHARED_LIBS=OFF -DENABLE_SAMPLES=OFF ..
make
popd
mkdir -p build-${_arch} && pushd build-${_arch}
- ${_arch}-configure --disable-static \
- --disable-samples
+ ${_arch}-cmake -DENABLE_SAMPLES=OFF ..
make
popd
done
@@ -51,11 +36,8 @@ package() {
cd "$srcdir/muparser-${pkgver}/build-${_arch}"
make DESTDIR="$pkgdir" install
install -d "$pkgdir"/usr/${_arch}/bin/
- mv "$pkgdir"/usr/${_arch}/lib/muparser.dll "$pkgdir"/usr/${_arch}/bin/
${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll
${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a
done
- cd "$srcdir/muparser-${pkgver}"
- install -D -m644 License.txt $pkgdir/usr/share/licenses/${pkgname}/LICENSE
}