[arch-commits] Commit in openslp/trunk (PKGBUILD)
Eric Bélanger
eric at archlinux.org
Tue Aug 26 00:24:54 UTC 2014
Date: Tuesday, August 26, 2014 @ 02:24:54
Author: eric
Revision: 220650
upgpkg: openslp 2.0.0-1
Upstream update
Modified:
openslp/trunk/PKGBUILD
----------+
PKGBUILD | 28 +++++++++++++++++++---------
1 file changed, 19 insertions(+), 9 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2014-08-25 19:42:14 UTC (rev 220649)
+++ PKGBUILD 2014-08-26 00:24:54 UTC (rev 220650)
@@ -2,25 +2,33 @@
# Maintainer: Tobias Powalowski <tpowa at archlinux.org>
pkgname=openslp
-pkgver=1.2.1
-pkgrel=7
+pkgver=2.0.0
+pkgrel=1
pkgdesc="Open-source implementation of Service Location Protocol"
arch=('i686' 'x86_64')
url="http://www.openslp.org"
license=('BSD')
depends=('bash' 'openssl')
+makedepends=('doxygen')
backup=('etc/slp.conf' 'etc/slp.reg' 'etc/slp.spi')
+options=(!makeflags)
source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz
#https://github.com/lunar-linux/moonbase-other/commit/ae74b5873e639d50db0a563d2424114a530c01ae
openslp.service)
-md5sums=('ff9999d1b44017281dd00ed2c4d32330'
+md5sums=('18cf7940bcc444e32592cf34e84f833f'
'90eea4426492287ebfc01b2056a3ef9d')
+prepare() {
+ sed -i 's|$(datadir)/doc|$(docdir)|' ${pkgname}-${pkgver}/doc/Makefile.in
+}
+
build() {
- cd ${srcdir}/${pkgname}-${pkgver}
+ cd ${pkgname}-${pkgver}
./configure --prefix=/usr \
--sbindir=/usr/bin \
- --disable-static \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --docdir=/usr/share/doc/openslp-${pkgver} \
--enable-slpv1 \
--enable-slpv2-security # service would fail to start without this
make
@@ -27,8 +35,10 @@
}
package() {
- cd ${srcdir}/${pkgname}-${pkgver}
- make DESTDIR=${pkgdir} DOC_DIR=/usr/share/doc/openslp-${pkgver} install
- install -D -m644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
- install -D -m644 $srcdir/openslp.service ${pkgdir}/usr/lib/systemd/system/openslp.service
+ cd ${pkgname}-${pkgver}
+ make DESTDIR="${pkgdir}" install
+ make DESTDIR="${pkgdir}" INSTALL_DATA="cp -r" install-docs
+ rm "${pkgdir}/usr/share/doc/openslp-${pkgver}/openslp-doxy-${pkgver}.tar.gz"
+ install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -D -m644 "${srcdir}/openslp.service" "${pkgdir}/usr/lib/systemd/system/openslp.service"
}
More information about the arch-commits
mailing list