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

recipes/utils/apr/PAGBUILD.yaml main

41 lines Raw ← Back
1234567891011121314151617181920212223242526272829303132333435363738394041
pkgname: apr
pkgver: '1.7.6'
pkgrel: '4'
pkgdesc: 'Apache Portable Runtime (APR)'
url: 'https://apr.apache.org/'
arch: x86_64
depends:
- libxcrypt
- util-linux
makedepends:
- python
- libxcrypt

source:
- 'https://archive.apache.org/dist/${pkgname}/${pkgname}-${pkgver}.tar.bz2'

sha256sums:
- SKIP

build: |
  cd ${pkgname}-${pkgver}
  ./configure --prefix=/usr --disable-static \
  --with-installbuilddir=/usr/share/apr-1/build
  make
  make DESTDIR=${PKGDIR} install

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

package: |
  true

update: |
  local url ext

  url="http://archive.apache.org/dist/${pkgname}/"
  ext=".tar.bz2"
  lynx -read_timeout=20 -dump -listonly -nonumbers \
  $url|grep ${pkgname}-[0-9]|grep [0-9]$ext$| \
  sed "s@$url${pkgname}-@@"|sed "s@$ext@@"| \
  sort|tail -1