2022-03-20 13:19:37 +01:00
|
|
|
# Contributor: Eric Bélanger <eric@archlinux.org>
|
|
|
|
|
|
|
|
pkgname=popt
|
2022-11-15 16:49:16 +01:00
|
|
|
pkgver=1.19
|
2024-09-06 22:57:22 +02:00
|
|
|
pkgrel=2
|
2022-03-20 13:19:37 +01:00
|
|
|
pkgdesc="A commandline option parser"
|
|
|
|
arch=('x86_64')
|
|
|
|
url="https://github.com/rpm-software-management/popt"
|
|
|
|
license=('custom')
|
|
|
|
depends=('glibc')
|
2024-09-06 22:57:22 +02:00
|
|
|
options=('staticlibs')
|
2022-03-20 13:19:37 +01:00
|
|
|
source=(https://ftp.osuosl.org/pub/rpm/popt/releases/popt-1.x/popt-${pkgver}.tar.gz)
|
2022-11-15 16:49:16 +01:00
|
|
|
sha256sums=('c25a4838fc8e4c1c8aacb8bd620edb3084a3d63bf8987fdad3ca2758c63240f9')
|
2022-03-20 13:19:37 +01:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${pkgname}-${pkgver}"
|
|
|
|
# Avoid stripping issue
|
|
|
|
CFLAGS+=" -ffat-lto-objects" ./configure --prefix=/usr
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "${pkgname}-${pkgver}"
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
install -Dm644 COPYING "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
|
|
|
|
}
|