summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f426d6b0ac4a40c43cec1022c00a80508f9cd825 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=libmicrohttpd-git
pkgver=0.9.75.r737.g46357a33
pkgrel=1
pkgdesc="A small C library that make it easy to run an HTTP server as part of another application"
arch=('i686' 'x86_64')
url="https://www.gnu.org/software/libmicrohttpd/"
license=('LGPL')
depends=('glibc' 'gnutls')
makedepends=('git')
checkdepends=('curl')
provides=("libmicrohttpd=$pkgver")
conflicts=('libmicrohttpd')
options=('staticlibs')
source=("git+https://git.gnunet.org/libmicrohttpd.git")
sha256sums=('SKIP')


pkgver() {
  cd "libmicrohttpd"

  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "libmicrohttpd"

  ./bootstrap
  ./configure \
    --prefix="/usr"
  make
}

check() {
  cd "libmicrohttpd"

  #make check
}

package() {
  cd "libmicrohttpd"

  make DESTDIR="$pkgdir" install
}