diff options
author | a821 | 2024-03-19 10:54:49 +0100 |
---|---|---|
committer | a821 | 2024-03-19 10:54:49 +0100 |
commit | ac90e9d8ac4c14466bb58cd48015b03db7340067 (patch) | |
tree | bb6b2ebaf88a08f332f9e5c8e111b3ef59173bdd /PKGBUILD | |
parent | 9b8283805dff12aae2f13e7fe75e788f68c09ad3 (diff) | |
download | aur-libonion-git.tar.gz |
Fix sources and deps. Build tested only
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 35 |
1 files changed, 21 insertions, 14 deletions
@@ -1,16 +1,18 @@ -# Maintainer: Anatol Pomozov <anatol.pomozov@gmail.com> +# Contributor: Anatol Pomozov <anatol.pomozov@gmail.com> # Contributor: Thomas Oster <thomas.oster@rwth-aachen.de> pkgname=libonion-git -pkgver=0.5.r253.g169fabc +pkgver=0.8.r191.gde8ea93 pkgrel=1 pkgdesc='lightweight C library that facilitate to create simple HTTP servers' -arch=(i686 x86_64) +arch=(x86_64) url='https://github.com/davidmoreno/onion/' -license=(LGPL) -makedepends=(git) -#options=(staticlibs) -source=(git://github.com/davidmoreno/onion) +license=('GPL-2.0-or-later' 'Apache-2.0') +depends=('mailcap' 'libpng' 'libjpeg-turbo' 'hiredis' 'sqlite' 'libgcrypt' + 'pam' 'systemd-libs' 'libxml2' 'gnutls' 'cairo') +makedepends=('git' 'cmake' 'go-md2man') +options=(!lto) +source=("git+$url") sha1sums=('SKIP') pkgver() { @@ -18,12 +20,18 @@ pkgver() { git describe --tags | sed 's/^v//; s/-/.r/; s/-/./' } +prepare() { + # use `extra/go-md2man` instead of `aur/ruby-md2man` (*) to build man pages + # cmake expects a program called `md2man-roff` + # (*) it's broken as of now. + echo -e '#!/bin/bash\n\nexec go-md2man -in $1' > md2man-roff + chmod +x md2man-roff +} + build() { - cd onion - mkdir build - cd build - cmake -DONION_USE_SYSTEMD=ON -DONION_USE_TESTS=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr "$srcdir/onion" - make + export PATH="$PWD:$PATH" + cmake -DONION_USE_SYSTEMD=ON -DONION_USE_TESTS=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -B build -S onion + cmake --build build } # Tests are broken @@ -33,7 +41,6 @@ build() { #} package() { - cd onion/build + cd build make DESTDIR="$pkgdir" install } - |