summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Branch2015-06-09 22:19:34 -0500
committerEd Branch2015-06-09 22:19:34 -0500
commit5a00fd4fbb26bb964b7bab35ae9b63f1d347c3c9 (patch)
tree0f9da89699134db9b2732268a75a958adf6d51b4
downloadaur-5a00fd4fbb26bb964b7bab35ae9b63f1d347c3c9.tar.gz
1.0.1.2 - Initial Import
-rw-r--r--.SRCINFO17
-rw-r--r--.gitignore1
-rw-r--r--PKGBUILD36
3 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..52911df1c5e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = libvariant
+ pkgdesc = A C++ dynamically typed composable object library with de/serializers
+ pkgver = 1.0.1
+ pkgrel = 2
+ url = https://bitbucket.org/gallen/libvariant
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = cmake
+ depends = libxml2
+ depends = libyaml
+ depends = curl
+ source = libvariant-1.0.1.tar.bz2::https://bitbucket.org/gallen/libvariant/get/1.0.1.tar.bz2
+ sha256sums = 004789d04a728f36065ca80ba166d0d897158b4164f2b8e3def0916f8bf509f7
+
+pkgname = libvariant
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..39f5691fcd2
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+libvariant-*.pkg.tar.xz
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e25f644cdf5
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: Ed Branch <brance carp at mail dot utexas dot edu nofish>
+pkgbase=libvariant
+pkgname=libvariant
+pkgver=1.0.1
+pkgrel=2
+pkgdesc="A C++ dynamically typed composable object library with de/serializers"
+arch=('i686' 'x86_64')
+url="https://bitbucket.org/gallen/libvariant"
+license=('GPL')
+depends=('libxml2' 'libyaml' 'curl')
+makedepends=('cmake')
+source=("${pkgname}-${pkgver}.tar.bz2::https://bitbucket.org/gallen/${pkgname}/get/${pkgver}.tar.bz2")
+sha256sums=('004789d04a728f36065ca80ba166d0d897158b4164f2b8e3def0916f8bf509f7')
+
+prepare() {
+ local extractdir="$(dirname $(tar -f ${pkgname}-${pkgver}.tar.bz2 --list | head -n1))"
+ mv "${extractdir}" "${pkgname}-${pkgver}"
+ mkdir -p "${pkgname}-${pkgver}/build"
+}
+
+build() {
+ cd "${pkgname}-${pkgver}/build"
+ cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr \
+ -DCMAKE_BUILD_TYPE=Release -DLIBVARIANT_BUILD_EXAMPLES=off ..
+ make
+}
+
+package() {
+ cd "${pkgname}-${pkgver}/build"
+ make DESTDIR="$pkgdir/" install
+}
+
+check() {
+ cd "${pkgname}-${pkgver}/build"
+ make test
+}