summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorxantares2015-06-08 22:53:22 +0200
committerxantares2015-06-08 22:53:22 +0200
commite2725035f779cd605da8ae8390391d27b8a78abf (patch)
treea032e71c9575538f5ef115a24ab33d9603600ce5
downloadaur-e2725035f779cd605da8ae8390391d27b8a78abf.tar.gz
Initial import
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD35
2 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..c9f3e8c46fa
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = mingw-w64-libfreexl
+ pkgdesc = Library to extract valid data from within an Excel (.xls) spreadsheet (mingw-w64)
+ pkgver = 1.0.1
+ pkgrel = 1
+ url = https://www.gaia-gis.it/fossil/freexl/‎
+ arch = any
+ license = MPL
+ license = GPL
+ license = LGPL
+ makedepends = mingw-w64-configure
+ depends = mingw-w64-crt
+ options = !strip
+ options = !buildflags
+ options = staticlibs
+ source = http://www.gaia-gis.it/gaia-sins/freexl-1.0.1.tar.gz
+ sha256sums = df0127e1e23e9ac9a189c27880fb71207837e8cba93d21084356491c9934b89b
+
+pkgname = mingw-w64-libfreexl
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..4554980f2fd
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,35 @@
+pkgname=mingw-w64-libfreexl
+pkgver=1.0.1
+pkgrel=1
+pkgdesc="Library to extract valid data from within an Excel (.xls) spreadsheet (mingw-w64)"
+arch=('any')
+url="https://www.gaia-gis.it/fossil/freexl/‎"
+license=('MPL' 'GPL' 'LGPL')
+depends=('mingw-w64-crt')
+makedepends=('mingw-w64-configure')
+options=('!strip' '!buildflags' 'staticlibs')
+source=(http://www.gaia-gis.it/gaia-sins/freexl-$pkgver.tar.gz)
+sha256sums=('df0127e1e23e9ac9a189c27880fb71207837e8cba93d21084356491c9934b89b')
+
+_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
+
+build() {
+ cd ${srcdir}/freexl-$pkgver
+ for _arch in ${_architectures}; do
+ mkdir -p build-${_arch} && pushd build-${_arch}
+ ${_arch}-configure
+ make
+ popd
+ done
+}
+
+package() {
+ for _arch in ${_architectures}; do
+ cd "${srcdir}/freexl-$pkgver/build-${_arch}"
+ make install DESTDIR="${pkgdir}"
+ rm -rf "${pkgdir}/usr/${_arch}/share/man"
+ chmod a-x "${pkgdir}/usr/${_arch}/lib/"*.dll.a
+ ${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll
+ ${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a
+ done
+}