summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Cochoy2016-01-17 02:56:07 +0100
committerJeremy Cochoy2016-01-17 02:56:07 +0100
commit5d152bb0084099a613bb8f5e1468954bc31cec3b (patch)
tree0f85ebcdf1c657c655a5dcb94e82545d58882b6d
downloadaur-sednl.tar.gz
Initial import
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD53
2 files changed, 70 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..a1bd19e1233
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+# Generated by mksrcinfo v8
+# Sun Jan 17 01:38:14 UTC 2016
+pkgbase = sednl
+ pkgdesc = Simple Event Driven Network Library (C++11)
+ pkgver = 1.0
+ pkgrel = 1
+ url = http://sednl.zenol.fr
+ arch = i686
+ arch = x86_64
+ license = ZLIB
+ makedepends = cmake
+ options = staticlibs
+ source = http://sednl.zenol.fr/download/sednl-1.0.tar.gz
+ md5sums = 29f32df02f9f0482798e39a438e99a04
+
+pkgname = sednl
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..400efbb38ff
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,53 @@
+# Maintainer: Jeremy Cochoy <jeremy.cochoy@gmail.com>
+pkgname=sednl
+pkgver=1.0
+pkgrel=1
+epoch=
+pkgdesc="Simple Event Driven Network Library (C++11)"
+arch=('i686' 'x86_64')
+url="http://sednl.zenol.fr"
+license=('ZLIB')
+groups=()
+depends=()
+makedepends=(cmake)
+checkdepends=()
+optdepends=()
+provides=()
+conflicts=()
+replaces=()
+backup=()
+options=(staticlibs)
+install=
+changelog=
+source=("http://sednl.zenol.fr/download/$pkgname-$pkgver.tar.gz")
+noextract=()
+md5sums=('29f32df02f9f0482798e39a438e99a04')
+validpgpkeys=()
+
+prepare() {
+ cd "$pkgname-$pkgver"
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+ mkdir -p build
+ cd build
+ cmake ..
+ cmake -DCMAKE_INSTALL_PREFIX=/usr -DBACKEND_EPOLL=ON .
+ make
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+ make test
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ cd build
+ make DESTDIR="$pkgdir/" install
+ ln -s /usr/lib/libsednl-1.0.a $pkgdir/usr/lib/libsednl.a
+ ln -s /usr/lib/libsednl-1.0.so $pkgdir/usr/lib/libsednl.so
+ mkdir -p "$pkgdir/usr/share/licenses/sednl/"
+ cp "../LICENSE" $pkgdir/usr/share/licenses/sednl/
+}