diff options
author | Samuel Mesa | 2015-07-27 21:14:12 -0500 |
---|---|---|
committer | Samuel Mesa | 2015-07-27 21:14:12 -0500 |
commit | edaa4cb73dee567af2e7ff8d4b496ad4fddde50d (patch) | |
tree | f1b42fe9adf5f121de351e0a9b964285b4be719a | |
download | aur-edaa4cb73dee567af2e7ff8d4b496ad4fddde50d.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 43 |
2 files changed, 62 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..8ca5a4791239 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = libkml + pkgdesc = A KML library written in C++ with bindings to other languages + pkgver = 1.2.0 + pkgrel = 3 + url = https://github.com/google/libkml + arch = i686 + arch = x86_64 + license = BSD + depends = expat + depends = uriparser + optdepends = swig: bindings for additional languages + optdepends = python2: python bindings + optdepends = jdk: java bindings + conflicts = libminizip + source = https://github.com/kubark42/libkml/archive/master.zip + md5sums = e5cae2b9ee6a652897a1f6e92fb094a4 + +pkgname = libkml + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..2eea70c842f3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,43 @@ +# Submitter: Eugen Zagorodniy <https://github.com/ezag> +# Maintainer: Samuel Mesa <samuelmesa@linuxmail.org> + +pkgname=libkml +pkgver=1.2.0 +pkgrel=3 +pkgdesc="A KML library written in C++ with bindings to other languages" +arch=(i686 x86_64) +url="https://github.com/google/libkml" +license=('BSD') +depends=('expat' 'uriparser') +optdepends=('swig: bindings for additional languages' + 'python2: python bindings' + 'jdk: java bindings') +# TODO: Use existing libminizip package instead of conflicting with it. +conflicts=('libminizip') +source=("https://github.com/kubark42/${pkgname}/archive/master.zip") +md5sums=('e5cae2b9ee6a652897a1f6e92fb094a4') + +build() { + cd "$srcdir/${pkgname}-master" + + # Add --disable-python or --disable-java to configure flags if your + # system doesn't have corresponding language. + + ./autogen.sh + + ./configure --prefix=/usr --enable-systempython \ + --with-python-include-dir=/usr/include/python2.7 \ + --with-python-lib-dir=/usr/lib/python2.7 + make -j5 + +} + +package() { + cd "$srcdir/${pkgname}-master" + make DESTDIR="$pkgdir/" install + # TODO: Remove uriparser sources before building and use existing package. + rm "$pkgdir/usr/lib/liburiparser."{{,l}a,so{,.1{,.0.5}}} + rm "$pkgdir/usr/lib/libminizip."{{,l}a,so{,.0}} + mkdir -p "$pkgdir/share/licenses/$pkgname" + cp COPYING "$pkgdir/share/licenses/$pkgname/" +} |