mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-01-17 23:34:07 +00:00
added community/shhopt
This commit is contained in:
parent
2c0977161e
commit
980620fd0f
1 changed files with 34 additions and 0 deletions
34
community/shhopt/PKGBUILD
Normal file
34
community/shhopt/PKGBUILD
Normal file
|
@ -0,0 +1,34 @@
|
|||
# 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=3.1
|
||||
pkgdesc="Library for parsing command line options"
|
||||
arch=('i686' 'x86_64')
|
||||
url="http://shh.thathost.com/pub-unix"
|
||||
license=('PerlArtistic')
|
||||
options=('staticlibs')
|
||||
source=($url/files/$pkgname-$pkgver.tar.gz)
|
||||
md5sums=('caf24206354296e8a48771aea1f47fbd')
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
|
||||
[[ $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
|
||||
}
|
Loading…
Reference in a new issue