mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
35 lines
892 B
Bash
35 lines
892 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=7
|
|
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)
|
|
sha256sums=('bae94335124efa6fcc2f0a55cabd68c9c90be935bcdb8054d7e5188e0d5da679')
|
|
|
|
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
|
|
}
|