PKGBUILDs/extra/shhopt/PKGBUILD
2023-05-29 21:48:20 +00:00

35 lines
857 B
Bash

# Maintainer: Jonathan Steel <jsteel at archlinux.org>
# Contributor: Peter Simons <simons@cryp.to>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - build v7/v8 with -fPIC
pkgname=shhopt
pkgver=1.1.7
pkgrel=6
pkgdesc="Library for parsing command line options"
arch=('x86_64')
url="https://shh.thathost.com/pub-unix"
license=('PerlArtistic')
options=('staticlibs')
source=($url/files/$pkgname-$pkgver.tar.gz)
md5sums=('caf24206354296e8a48771aea1f47fbd')
build() {
cd $pkgname-$pkgver
CFLAGS+=' -ffat-lto-objects'
[[ $CARCH == "armv7h" || $CARCH == "aarch64" ]] && CFLAGS+=" -fPIC"
make OPTIM="$CFLAGS" dep
make OPTIM="$CFLAGS"
}
package() {
cd $pkgname-$pkgver
make OPTIM="$CFLAGS" INSTBASEDIR="$pkgdir"/usr/ install
for i in ChangeLog CREDITS INSTALL README; do
install -Dm644 $i "$pkgdir"/usr/share/doc/$pkgname/$i
done
}