diff options
| author | rawnix ports <ports@rawnix.org> | 2026-09-26 18:19:05 +0000 |
|---|---|---|
| committer | rawnix ports <ports@rawnix.org> | 2026-09-26 18:19:05 +0000 |
| commit | c82e88dd00d1b0b7fcfb4e5628d99611388cef6f (patch) | |
| tree | 56d864b5a5c6c145edd96178ae219a8f90e191a6 /core/bzip2/MAKEPKG | |
| download | ports-c82e88dd00d1b0b7fcfb4e5628d99611388cef6f.tar.gz | |
sync 2026-09-26 18:19 UTC
1672 files changed, 151396 insertions(+)
Diffstat (limited to 'core/bzip2/MAKEPKG')
| -rw-r--r-- | core/bzip2/MAKEPKG | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/core/bzip2/MAKEPKG b/core/bzip2/MAKEPKG new file mode 100644 index 0000000..96e8179 --- /dev/null +++ b/core/bzip2/MAKEPKG @@ -0,0 +1,52 @@ +#!/bin/mkpkg +# description: Block-sorting file compressor +# url: https://sourceware.org/bzip2 + +# license: bzip2-1.0.6 + +name=bzip2 +version=1.0.8 +release=1 +source=(https://sourceware.org/pub/bzip2/bzip2-$version.tar.gz) +depends=() +makedeps=() + +sha256sums=( + "ab5a03176ee106d3f0fa90e381da478ddae405918153cca248e682cd0c4a2269" +) + +build() { + cd bzip2-$version + + # Build shared library + make -f Makefile-libbz2_so CC=clang + make CC=clang + + # Install + make PREFIX=$PKG/ install + + # Install shared library + install -m 755 libbz2.so.$version $PKG/lib/ + ln -s libbz2.so.$version $PKG/lib/libbz2.so.1.0 + ln -s libbz2.so.$version $PKG/lib/libbz2.so + + # Move headers to /include + mv $PKG/include/* $PKG/include/ 2>/dev/null || true + + # Remove static library + rm -f $PKG/lib/libbz2.a + + # Remove man dir if wrong location + rm -rf $PKG/man + mkdir -p $PKG/usr/share/man/man1 + install -m 644 bzip2.1 $PKG/usr/share/man/man1/ + ln -s bzip2.1 $PKG/usr/share/man/man1/bunzip2.1 + ln -s bzip2.1 $PKG/usr/share/man/man1/bzcat.1 +} + +signify() { + untrusted comment: public key + RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3 +} + +# vim: filetype=sh |
