summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLudovic LE ROUX2015-09-06 18:33:12 +0200
committerLudovic LE ROUX2015-09-06 18:33:12 +0200
commit642268d7816c495d073d84cb8c5da02246adaf58 (patch)
tree1b678ebbdf6a82d43d78f1f12354aee5bf6df0de
downloadaur-642268d7816c495d073d84cb8c5da02246adaf58.tar.gz
moved from aur3 to aur4
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD45
-rw-r--r--mingw-w64-libharu-2.3.0-1.src.tar.gzbin0 -> 1034 bytes
3 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..765fa9d8a8f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = mingw-w64-libharu
+ pkgdesc = C library for generating PDF documents (mingw-w64)
+ pkgver = 2.3.0
+ pkgrel = 1
+ url = https://github.com/libharu/libharu
+ arch = any
+ license = custom:ZLIB
+ makedepends = mingw-w64-cmake
+ depends = mingw-w64-crt
+ depends = mingw-w64-libpng
+ options = !buildflags
+ options = !strip
+ options = staticlibs
+ source = https://github.com/libharu/libharu/archive/RELEASE_2_3_0.tar.gz
+ md5sums = 4f916aa49c3069b3a10850013c507460
+
+pkgname = mingw-w64-libharu
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e41823aba7c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,45 @@
+# Contributor: Ludovic LE ROUX <luudoroux at gmail dot com>
+
+pkgname=mingw-w64-libharu
+pkgver=2.3.0
+pkgrel=1
+pkgdesc="C library for generating PDF documents (mingw-w64)"
+url="https://github.com/libharu/libharu"
+arch=('any')
+license=('custom:ZLIB')
+depends=('mingw-w64-crt' 'mingw-w64-libpng')
+makedepends=('mingw-w64-cmake')
+options=('!buildflags' '!strip' 'staticlibs')
+source=("https://github.com/libharu/libharu/archive/RELEASE_${pkgver//./_}.tar.gz")
+md5sums=('4f916aa49c3069b3a10850013c507460')
+
+_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
+
+prepare() {
+ cd "$srcdir/libharu-RELEASE_${pkgver//./_}"
+ sed -i "s|WIN32 AND NOT CYGWIN|WIN32 AND NOT CYGWIN AND NOT MINGW|g" src/CMakeLists.txt
+ sed -i "s|install(DIRECTORY if DESTINATION .)|message(STATUS hello)|g" CMakeLists.txt
+ sed -i "s|install(FILES README CHANGES INSTALL DESTINATION .)|message(STATUS hello)|g" CMakeLists.txt
+}
+
+build() {
+ cd "$srcdir/libharu-RELEASE_${pkgver//./_}"
+ for _arch in ${_architectures}; do
+ unset LDFLAGS
+ mkdir -p build-${_arch} && pushd build-${_arch}
+ ${_arch}-cmake \
+ -DCMAKE_BUILD_TYPE=Release \
+ ..
+ make
+ popd
+ done
+}
+
+package() {
+ for _arch in ${_architectures}; do
+ cd "$srcdir/libharu-RELEASE_${pkgver//./_}/build-${_arch}"
+ make install DESTDIR="$pkgdir"
+ ${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll
+ ${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a
+ done
+} \ No newline at end of file
diff --git a/mingw-w64-libharu-2.3.0-1.src.tar.gz b/mingw-w64-libharu-2.3.0-1.src.tar.gz
new file mode 100644
index 00000000000..8528f913f6d
--- /dev/null
+++ b/mingw-w64-libharu-2.3.0-1.src.tar.gz
Binary files differ