summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD36
1 files changed, 36 insertions, 0 deletions
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
+}