summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichel Zou2020-01-23 07:57:56 +0100
committerMichel Zou2020-01-23 07:57:56 +0100
commit29ea37094cb3b87a74081608d8dd9677425ec85c (patch)
treeb8d25b663302333b09247f9207ac3d19b5660e17
downloadaur-29ea37094cb3b87a74081608d8dd9677425ec85c.tar.gz
1.3.0
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD37
2 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..54a450d0278
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = mingw-w64-laz-perf
+ pkgdesc = Alternative LAZ implementation for C++ and JavaScript (mingw-w64)
+ pkgver = 1.3.0
+ pkgrel = 1
+ url = https://github.com/hobu/laz-perf
+ arch = any
+ license = LGPL
+ makedepends = mingw-w64-cmake
+ depends = mingw-w64-crt
+ options = !buildflags
+ options = !strip
+ options = staticlibs
+ source = https://github.com/hobu/laz-perf/archive/1.3.0.tar.gz
+ sha512sums = 4e6e5197a90bf98fe6784a56e940070ad640ee2791443b9232960fd0f7639cc8d48d5c13df0cfc228e6be5fccd600afb1c171cb5e127bd874688e0ab231c25a8
+
+pkgname = mingw-w64-laz-perf
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e021182d56b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+pkgname=mingw-w64-laz-perf
+pkgver=1.3.0
+pkgrel=1
+pkgdesc='Alternative LAZ implementation for C++ and JavaScript (mingw-w64)'
+arch=('any')
+url='https://github.com/hobu/laz-perf'
+license=('LGPL')
+depends=('mingw-w64-crt')
+makedepends=('mingw-w64-cmake')
+options=('!buildflags' '!strip' 'staticlibs')
+source=("https://github.com/hobu/laz-perf/archive/${pkgver}.tar.gz")
+sha512sums=('4e6e5197a90bf98fe6784a56e940070ad640ee2791443b9232960fd0f7639cc8d48d5c13df0cfc228e6be5fccd600afb1c171cb5e127bd874688e0ab231c25a8')
+
+_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
+
+prepare () {
+ cd "${srcdir}/laz-perf-${pkgver}"
+ # minwindef.h:131:15: error: conflicting declaration ‘typedef int BOOL’
+ sed -i "s|typedef bool BOOL|typedef int BOOL|g" laz-perf/common/types.hpp
+}
+
+build() {
+ cd "${srcdir}/laz-perf-${pkgver}"
+ for _arch in ${_architectures}; do
+ mkdir -p build-${_arch} && pushd build-${_arch}
+ ${_arch}-cmake -DWITH_TESTS=OFF ..
+ make
+ popd
+ done
+}
+
+package() {
+ for _arch in ${_architectures}; do
+ cd "$srcdir/laz-perf-${pkgver}/build-${_arch}"
+ make install DESTDIR="$pkgdir"
+ done
+}