db-move: moved webkitgtk-6.0 from [testing] to [extra] (x86_64)
[arch-packages.git] / hefur / repos / extra-x86_64 / PKGBUILD
blobd483d4cd50558d84db942a47911008fb5b21b756
1 # Maintainer: Pierre Schmitz <pierre@archlinux.de>
2 # Contributor: Alexandre Bique <bique.alexandre@gmail.com>
4 pkgname=hefur
5 pkgver=1.0
6 pkgrel=7
7 pkgdesc='A standalone and lightweight BitTorrent tracker'
8 arch=('x86_64')
9 url='https://github.com/abique/hefur'
10 license=('MIT')
11 makedepends=('git' 'cmake')
12 depends=('gnutls' 'xz' 'protobuf')
13 source=("git+https://github.com/abique/${pkgname}.git#tag=${pkgver}"
14         'hefurd.service' 'tmpfiles.conf' 'sysusers.conf')
15 sha1sums=('SKIP'
16           'd9359b0e1c54ef2d286c6161eb742d442ba1b766'
17           'f482ed1715d5a375c4a8d1906436b946c0b02157'
18           '306db71b24ea5ca3429b6f482ab310fc7cfde63c')
20 prepare() {
21         cd "${srcdir}/${pkgname}"
22         git submodule set-url mimosa https://github.com/abique/mimosa.git
23         git submodule init
24         git submodule update
25         sed -i "s/PROJECT_NUMBER.*/PROJECT_NUMBER=${pkgver}/g" Doxyfile
26         sed -i "s/tracker-controller.hh//g" hefur/CMakeLists.txt
29 build() {
30         cd "${srcdir}/${pkgname}"
31         mkdir build
32         cd build
33         cmake -DCMAKE_INSTALL_PREFIX=/usr ..
34         make
37 package() {
38         cd "${srcdir}/${pkgname}/build"
39         DESTDIR="${pkgdir}" make install
40         install -D -m644 "${srcdir}/hefurd.service" "${pkgdir}/usr/lib/systemd/system/hefurd.service"
41         install -D -m644 "${srcdir}/tmpfiles.conf" "${pkgdir}/usr/lib/tmpfiles.d/hefurd.conf"
42         install -D -m644 "${srcdir}/sysusers.conf" "${pkgdir}/usr/lib/sysusers.d/hefurd.conf"
43         install -D -m644 "${srcdir}/${pkgname}/LICENSE.md" "${pkgdir}/usr/share/licenses/hefur/LICENSE"