summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Balough2017-06-23 12:20:32 -0400
committerJoe Balough2017-06-23 12:20:32 -0400
commitd02b43c70266ab8f0cd45d348874079884c1c917 (patch)
treef5f7afc7b915be374661ca8866c5284d8e74e6ad
downloadaur-anjay-git.tar.gz
Initial Commit
Contains .SRCINFO, .gitignore, and PKGBUILD to build Anjay 1.3.1
-rw-r--r--.SRCINFO16
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD32
3 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..183f1b4af31
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = anjay-git
+ pkgdesc = C implementation of the client-side OMA LwM2M protocol, uses mbedtls
+ pkgver = 1.3.1
+ pkgrel = 1
+ url = https://github.com/AVSystem/Anjay
+ arch = i686
+ arch = x86_64
+ license = Apache
+ makedepends = coreutils
+ makedepends = cmake
+ makedepends = mbedtls
+ source = git://github.com/AVSystem/Anjay.git
+ md5sums = SKIP
+
+pkgname = anjay-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..d68ede21bdb
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+Anjay
+pkg
+src
+*.pkg.tar.xz
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..00584831081
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Joe Balough <jbb5044@gmail.com>
+pkgname=anjay-git
+pkgver=1.3.1
+pkgrel=1
+pkgdesc="C implementation of the client-side OMA LwM2M protocol, uses mbedtls"
+arch=('i686' 'x86_64')
+url="https://github.com/AVSystem/Anjay"
+license=('Apache')
+makedepends=('coreutils' 'cmake' 'mbedtls')
+source=('git://github.com/AVSystem/Anjay.git')
+md5sums=('SKIP')
+
+pkgver() {
+ cd "Anjay"
+ git describe --tags | sed 's|-|.|g'
+}
+
+build() {
+ cd "Anjay"
+ git submodule update --init
+ cmake .\
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DWITH_DEMO=false \
+ -DDTLS_BACKEND="mbedtls"
+ make -j
+}
+
+package() {
+ cd "Anjay"
+ make "DESTDIR=${pkgdir}" install
+}