[arch-commits] Commit in libstrophe/trunk (PKGBUILD)

Levente Polyak anthraxx at archlinux.org
Wed Oct 12 23:55:13 UTC 2016


    Date: Wednesday, October 12, 2016 @ 23:55:13
  Author: anthraxx
Revision: 192103

upgpkg: libstrophe 1:0.9.1-1

Modified:
  libstrophe/trunk/PKGBUILD

----------+
 PKGBUILD |   37 +++++++++++++++++++++++++------------
 1 file changed, 25 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-10-12 23:44:32 UTC (rev 192102)
+++ PKGBUILD	2016-10-12 23:55:13 UTC (rev 192103)
@@ -1,39 +1,52 @@
 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
 # Contributor: Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
 
-pkgname=libstrophe
-pkgver=0.8.8
-pkgrel=2
+pkgbase=libstrophe
+pkgname=('libstrophe' 'libstrophe-doc')
+pkgver=0.9.1
+pkgrel=1
 epoch=1
 pkgdesc='Simple, lightweight C library for writing XMPP clients'
 url='http://strophe.im/libstrophe/'
 arch=('i686' 'x86_64')
-license=('MIT' 'GPL3')
-depends=('openssl' 'expat')
-makedepends=('git')
+license=('GPL3' 'MIT')
+makedepends=('openssl' 'expat' 'pkg-config' 'doxygen')
 checkdepends=('check')
+options=('staticlibs')
 source=(${pkgname}-${pkgver}.tar.gz::https://github.com/strophe/libstrophe/archive/${pkgver}.tar.gz)
-sha512sums=('fe1e9ee0ea93271862ca8bd3cd5cd66d0bd060398f3b11a242158872501ab517f4f436e474dd5603d73433333d4aaf0957d68b7fe69578d7d99541aaa63a38a3')
+sha512sums=('4ae0ea7ad21fc566dc5372b1b6ed1dd47da87dadeb5771bb85c51b9119d781b7ec8e2b89d056cbfe81968a7f7db6d93fed435f28d28e552b9e61d5ffdddd4916')
 
 prepare() {
-  cd ${pkgname}-${pkgver}
+  cd ${pkgbase}-${pkgver}
   ./bootstrap.sh
 }
 
 build() {
-  cd ${pkgname}-${pkgver}
+  cd ${pkgbase}-${pkgver}
   ./configure --prefix=/usr
   make
+  doxygen
 }
 
 check() {
-  make -C ${pkgname}-${pkgver} check
+  make -C ${pkgbase}-${pkgver} check
 }
 
-package() {
-  cd ${pkgname}-${pkgver}
+package_libstrophe() {
+  depends=('openssl' 'expat')
+  cd ${pkgbase}-${pkgver}
   make DESTDIR="${pkgdir}" install
   install -Dm 644 MIT-LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-MIT"
 }
 
+package_libstrophe-doc() {
+  pkgdesc+=' (documentation and samples)'
+  options=('!strip')
+  optdepends=('libstrophe')
+  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:



More information about the arch-commits mailing list