[arch-commits] Commit in hefur/trunk (PKGBUILD)
Pierre Schmitz
pierre at archlinux.org
Sat Jul 15 17:46:53 UTC 2017
Date: Saturday, July 15, 2017 @ 17:46:52
Author: pierre
Revision: 300604
upgpkg: hefur 0.6-1
Modified:
hefur/trunk/PKGBUILD
----------+
PKGBUILD | 26 ++++++++++++++++++--------
1 file changed, 18 insertions(+), 8 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-07-15 17:32:59 UTC (rev 300603)
+++ PKGBUILD 2017-07-15 17:46:52 UTC (rev 300604)
@@ -3,23 +3,33 @@
# Contributor: Alexandre Bique <bique.alexandre at gmail.com>
pkgname=hefur
-pkgver=0.4
-pkgrel=12
+pkgver=0.6
+pkgrel=1
pkgdesc='A standalone and lightweight BitTorrent tracker'
arch=('i686' 'x86_64')
url='http://github.com/abique/hefur'
license=('MIT')
-makedepends=('cmake')
+makedepends=('git' 'cmake' 'docbook-xsl')
depends=('gnutls' 'xz' 'protobuf')
-source=("https://github.com/downloads/abique/${pkgname}/${pkgname}-${pkgver}.tar.xz"
+source=("git+https://github.com/abique/${pkgname}.git#tag=${pkgver}"
'hefurd.service' 'tmpfiles.conf' 'sysusers.conf')
-md5sums=('f0461363f38105140a1f119a3b97d818'
+md5sums=('SKIP'
'3107be29769b8afde3574dc6e31d5b6a'
'b884385d6c87c350172427da4ba2688f'
'7971708a1fe25c1b51e0a05e812f17c9')
+prepare() {
+ cd ${srcdir}/${pkgname}
+ git submodule init
+ git submodule update
+ sed -i "s/PROJECT_NUMBER.*/PROJECT_NUMBER=${pkgver}/g" Doxyfile
+}
+
build() {
- cd ${srcdir}/${pkgname}-${pkgver}
+ cd ${srcdir}/${pkgname}/manual
+ xsltproc -o manual.html /usr/share/xml/docbook/xsl-stylesheets-*/html/docbook.xsl manual.xml
+
+ cd ${srcdir}/${pkgname}
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
@@ -27,10 +37,10 @@
}
package() {
- cd ${srcdir}/${pkgname}-${pkgver}/build
+ cd ${srcdir}/${pkgname}/build
DESTDIR=${pkgdir} make install
install -D -m644 ${srcdir}/hefurd.service ${pkgdir}/usr/lib/systemd/system/hefurd.service
install -D -m644 ${srcdir}/tmpfiles.conf ${pkgdir}/usr/lib/tmpfiles.d/hefurd.conf
install -D -m644 ${srcdir}/sysusers.conf ${pkgdir}/usr/lib/sysusers.d/hefurd.conf
- install -D -m644 ${srcdir}/${pkgname}-${pkgver}/LICENSE ${pkgdir}/usr/share/licenses/hefur/LICENSE
+ install -D -m644 ${srcdir}/${pkgname}/LICENSE ${pkgdir}/usr/share/licenses/hefur/LICENSE
}
More information about the arch-commits
mailing list