2018-06-04 23:42:51 +00:00
|
|
|
# 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
|
2024-07-13 22:23:35 +00:00
|
|
|
pkgrel=7
|
2018-06-04 23:42:51 +00:00
|
|
|
pkgdesc="Library for parsing command line options"
|
2018-11-13 19:43:49 +00:00
|
|
|
arch=('x86_64')
|
2020-07-10 01:23:40 +00:00
|
|
|
url="https://shh.thathost.com/pub-unix"
|
2018-06-04 23:42:51 +00:00
|
|
|
license=('PerlArtistic')
|
|
|
|
options=('staticlibs')
|
|
|
|
source=($url/files/$pkgname-$pkgver.tar.gz)
|
2024-07-13 22:23:35 +00:00
|
|
|
sha256sums=('bae94335124efa6fcc2f0a55cabd68c9c90be935bcdb8054d7e5188e0d5da679')
|
2018-06-04 23:42:51 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
|
2022-04-24 18:45:36 +00:00
|
|
|
CFLAGS+=' -ffat-lto-objects'
|
2018-06-04 23:42:51 +00:00
|
|
|
[[ $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
|
|
|
|
}
|