db-move: moved nvidia from [testing] to [extra] (x86_64)
[arch-packages.git] / popt / trunk / PKGBUILD
blob5fb44bc76a98050c1f6f4ccd7c6675b3c1e5c4a1
1 # Contributor: Eric BĂ©langer <eric@archlinux.org>
3 pkgname=popt
4 pkgver=1.19
5 pkgrel=1
6 pkgdesc="A commandline option parser"
7 arch=('x86_64')
8 url="https://github.com/rpm-software-management/popt"
9 license=('custom')
10 depends=('glibc')
11 options=('staticlibs')
12 source=(https://ftp.osuosl.org/pub/rpm/popt/releases/popt-1.x/popt-${pkgver}.tar.gz)
13 sha256sums=('c25a4838fc8e4c1c8aacb8bd620edb3084a3d63bf8987fdad3ca2758c63240f9')
15 build() {
16   cd "${pkgname}-${pkgver}"
17   # Avoid stripping issue
18   CFLAGS+=" -ffat-lto-objects" ./configure --prefix=/usr
19   make
22 package() {
23   cd "${pkgname}-${pkgver}"
24   make DESTDIR="${pkgdir}" install
25   install -Dm644 COPYING "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE