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

recipes/core/libunistring/PAGBUILD.yaml main

37 lines Raw ← Back
12345678910111213141516171819202122232425262728293031323334353637
pkgname: libunistring
pkgver: '1.4.2'
pkgrel: '2'
pkgdesc: 'libunistring is a library that provides functions for manipulating Unicode strings'
url: 'http://www.gnu.org/software/bison/'
arch: x86_64
depends: []
makedepends: []
source:
- 'ftp://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz'

sha256sums:
- SKIP

build: |
  cd ${pkgname}-${pkgver}

  find . -name '*.in.h' -exec sed -r '/_GL_EXTERN_C/s/w?memchr|bsearch/(&)/' -i {} +
  ./configure --prefix=/usr \
  --disable-static \
  --docdir=/usr/share/doc/libunistring-${pkgver}

  make

  make DESTDIR=${PKGDIR} install
  rm -f ${PKGDIR}/usr/lib/libunistring.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