🔒 Repository is read-only – file editing is disabled.

recipes/core/bzip2/PAGBUILD.yaml main

43 linii Raw ← Powrót
12345678910111213141516171819202122232425262728293031323334353637383940414243
pkgname: bzip2
pkgver: '1.0.8'
pkgrel: '2'
pkgdesc: 'Programs for compressing and decompressing files.'
url: 'http://www.bzip.org/'
arch: x86_64
depends: []
makedepends: []
source:
- 'https://www.sourceware.org/pub/${pkgname}/bzip2-${pkgver}.tar.gz'
- 'https://www.linuxfromscratch.org/patches/lfs/development/bzip2-${pkgver}-install_docs-1.patch'

sha256sums:
- ab5a03176ee106d3f0fa90e381da478ddae405918153cca248e682cd0c4a2269
- 35e3bbd9642af51fef2a8a83afba040d272da42d7e3a251d8e43255a7b496702

build: |
  cd bzip2-${pkgver}

  patch -Np1 -i ../bzip2-${pkgver}-install_docs-1.patch
  sed -i 's@\(ln -s -f \)$(PREFIX)/bin/@\1@' Makefile
  sed -i "s@(PREFIX)/man@(PREFIX)/share/man@g" Makefile

  make -f Makefile-libbz2_so
  make clean

  make

  make PREFIX=${PKGDIR}/usr install

  mkdir -pv ${PKGDIR}/usr/{bin,lib}
  cp -v bzip2-shared ${PKGDIR}/usr/bin/bzip2
  cp -av libbz2.so* ${PKGDIR}/usr/lib

  ln -sv libbz2.so.1.0.8 ${PKGDIR}/usr/lib/libbz2.so
  ln -sv libbz2.so.1.0.8 ${PKGDIR}/usr/lib/libbz2.so.1

  for i in bzcat bunzip2; do
    ln -sfv bzip2 ${PKGDIR}/usr/bin/$i
  done

package: |
  true