summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorTheo J.A. de Vries2015-07-22 10:55:37 +0200
committerTheo J.A. de Vries2015-07-22 10:55:37 +0200
commitebbf28445b970bb0840ce32e8c1c245b6afca6e9 (patch)
treebe7e25d9a83ba703eb131711d1d70480adaab10b
downloadaur-ebbf28445b970bb0840ce32e8c1c245b6afca6e9.tar.gz
Initial import, do not build tests and examples, remove ref to pkgdir
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD56
2 files changed, 72 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..d502cfa5d6c
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = cpp-netlib
+ pkgdesc = A library that provides application layer protocol support using modern C++ techniques
+ pkgver = 0.11.1
+ pkgrel = 2
+ url = http://cpp-netlib.github.com/
+ arch = i686
+ arch = x86_64
+ license = custom
+ makedepends = cmake>=2.8.10
+ depends = boost>=1.54.0
+ optdepends = openssl: for https
+ source = http://commondatastorage.googleapis.com/cpp-netlib-downloads/0.11.1/cpp-netlib-0.11.1-final.tar.gz
+ sha256sums = bd9b081686f1042fa53af7627d4552e039130ada0937ea081097439e3c015eec
+
+pkgname = cpp-netlib
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..a1ccaf056b5
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: vri <t.j.a.devries(at)gmail(dot)com>
+# Contributor: Nathan Owe <ndowens.aur at gmail dot com>
+
+# for customization
+_pkgname=cpp-netlib
+_ext=
+_basedir=/usr
+_boost=boost${_ext}
+
+pkgname=${_pkgname}${_ext}
+pkgver=0.11.1
+pkgrel=2
+pkgdesc="A library that provides application layer protocol support using modern C++ techniques"
+arch=('i686' 'x86_64')
+url="http://cpp-netlib.github.com/"
+license=('custom')
+depends=("boost${_ext}>=1.54.0")
+optdepends=('openssl: for https')
+makedepends=("cmake>=2.8.10")
+#options=(staticlibs)
+source=(
+ http://commondatastorage.googleapis.com/$_pkgname-downloads/$pkgver/$_pkgname-$pkgver-final.tar.gz
+ )
+sha256sums=(
+ 'bd9b081686f1042fa53af7627d4552e039130ada0937ea081097439e3c015eec'
+ )
+
+build() {
+ install -d $srcdir/build
+ cd $srcdir/build
+ cmake -DBOOST_ROOT=$_basedir -DCPP-NETLIB_BUILD_TESTS=OFF -DCPP-NETLIB_BUILD_EXAMPLES=OFF -DCPP-NETLIB_BUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX:PATH=${pkgdir}${_basedir} ../"$_pkgname-$pkgver-final"
+ make
+# make test
+}
+
+package() {
+ cd $srcdir/build
+ make install
+
+ if test "$CARCH" == x86_64; then
+ mv ${pkgdir}${_basedir}/lib64/* ${pkgdir}${_basedir}/lib
+ rmdir ${pkgdir}${_basedir}/lib64
+ fi
+ for _file in $(find ${pkgdir}${_basedir}/lib/cmake/cppnetlib -type f -name "*.cmake");
+ do
+ sed -i -e "s|${pkgdir}${_basedir}/lib64|${_basedir}/lib|g" $_file
+ sed -i -e "s|${pkgdir}${_basedir}|${_basedir}|g" $_file
+ done
+
+ #Install license
+ install -d ${pkgdir}/usr/share/licenses/$pkgname
+ cd "$srcdir/$_pkgname-$pkgver-final"
+ install -Dm644 LICENSE_1_0.txt ${pkgdir}/usr/share/licenses/$pkgname/LICENSE_1_0.txt
+}
+