pkgs/argp-standalone/PKGBUILD

31 lines
667 B
Text
Raw Normal View History

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