29 lines
709 B
Bash
29 lines
709 B
Bash
# Maintainer: Daryl Ronningen <relms@relms.dev>
|
|
|
|
pkgname=argp-standalone
|
|
pkgver=1.5.0
|
|
pkgrel=1
|
|
pkgdesc="Standalone version of Glibc's ARGP"
|
|
arch=('x86_64')
|
|
url="https://github.com/argp-standalone/argp-standalone"
|
|
license=('LGPL-2.1-or-later')
|
|
source=(https://github.com/argp-standalone/argp-standalone/archive/$pkgver.tar.gz)
|
|
sha256sums=('c29eae929dfebd575c38174f2c8c315766092cec99a8f987569d0cad3c6d64f6')
|
|
|
|
prepare() {
|
|
cd ${pkgname}-${pkgver}
|
|
autoreconf -fi
|
|
}
|
|
|
|
build() {
|
|
cd ${pkgname}-${pkgver}
|
|
CFLAGS+=" -fPIC" ./configure --prefix=/usr
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd ${pkgname}-${pkgver}
|
|
|
|
install -D -m644 argp.h "$pkgdir"/usr/include/argp.h
|
|
install -D -m755 libargp.a "$pkgdir"/usr/lib/libargp.a
|
|
}
|