PaganOS Luna 0.6.0
PL EN DE
🔒 Repository is read-only – file editing is disabled.

recipes/utils/libmicrohttpd/PAGBUILD.yaml main

41 lines Raw ← Back
1234567891011121314151617181920212223242526272829303132333435363738394041
pkgname: libmicrohttpd
pkgver: '1.0.10'
pkgrel: '2'
pkgdesc: 'a small C library that is supposed to make it easy to run an HTTP server as part of another application.'
url: 'http://www.gnu.org/software/libmicrohttpd/'
arch: x86_64
depends:
- gnutls
makedepends:
- curl
- file
- gnutls
- libgcrypt

source:
- 'ftp://ftp.gnu.org/gnu/libmicrohttpd/${pkgname}-${pkgver}.tar.gz'

sha256sums:
- SKIP

build: |
  cd ${pkgname}-${pkgver}
  ./configure --prefix=/usr --disable-dependency-tracking --enable-largefile \
  --enable-curl --enable-messages --with-pic --enable-https --disable-examples

  make
  make DESTDIR=${PKGDIR} install

  # Obsolet lib
  rm -f ${PKGDIR}/usr/lib/libmicrohttpd.la

package: |
  true

update: |
  local url ext
  url="https://ftp.gnu.org/gnu/${pkgname}/"
  ext=".tar.gz"
  lynx -read_timeout=20 -dump -listonly -nonumbers \
  $url?C=M\;O=A|grep ${pkgname}-[0-9]|grep [0-9]$ext$| \
  sed "s@$url${pkgname}-@@"|sed "s@$ext@@"|tail -1