Date: Wednesday, October 12, 2016 @ 23:44:09
  Author: anthraxx
Revision: 192101

addpkg: libmesode 0.9.1-1

Added:
  libmesode/
  libmesode/repos/
  libmesode/trunk/
  libmesode/trunk/PKGBUILD

----------+
 PKGBUILD |   50 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)

Added: libmesode/trunk/PKGBUILD
===================================================================
--- libmesode/trunk/PKGBUILD                            (rev 0)
+++ libmesode/trunk/PKGBUILD    2016-10-12 23:44:09 UTC (rev 192101)
@@ -0,0 +1,50 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+pkgbase=libmesode
+pkgname=('libmesode' 'libmesode-doc')
+pkgver=0.9.1
+pkgrel=1
+pkgdesc='Simple, lightweight C library for writing prifanity XMPP client'
+url='https://github.com/boothj5/libmesode'
+arch=('i686' 'x86_64')
+license=('GPL3' 'MIT')
+makedepends=('openssl' 'expat' 'doxygen')
+checkdepends=('check')
+options=('staticlibs')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/boothj5/libmesode/archive/${pkgver}.tar.gz)
+sha512sums=('b549c17e61aa3e1d80a93783ac47d5a9e87767876173500c30613e9326d10ed413f284c7435b4f24c028a51f8a8d9be913cd7de9baaa5b358cac5951496d9076')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  ./bootstrap.sh
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  ./configure --prefix=/usr
+  make
+  doxygen
+}
+
+check() {
+  make -C ${pkgbase}-${pkgver} check
+}
+
+package_libmesode() {
+  depends=('openssl' 'expat')
+  cd ${pkgbase}-${pkgver}
+  make DESTDIR="${pkgdir}" install
+  install -Dm 644 MIT-LICENSE.txt 
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-MIT"
+}
+
+package_libmesode-doc() {
+  pkgdesc+=' (documentation and samples)'
+  options=('!strip')
+  optdepends=('libmesode')
+  cd ${pkgbase}-${pkgver}
+  install -Dm 644 docs/html/* -t "${pkgdir}/usr/share/doc/${pkgname}/html"
+  install -Dm 644 examples/{README.md,*.c} -t 
"${pkgdir}/usr/share/doc/${pkgname}/examples"
+  install -Dm 644 MIT-LICENSE.txt 
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-MIT"
+}
+
+# vim: ts=2 sw=2 et:

Reply via email to