summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--system/popt/APKBUILD12
1 files changed, 7 insertions, 5 deletions
diff --git a/system/popt/APKBUILD b/system/popt/APKBUILD
index e24a7913b..80e18f44d 100644
--- a/system/popt/APKBUILD
+++ b/system/popt/APKBUILD
@@ -2,15 +2,13 @@
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=popt
pkgver=1.18
-pkgrel=8
+pkgrel=0
pkgdesc="Command-line option parser"
-url="http://ftp.rpm.org/mirror/popt/README"
+url="https://github.com/rpm-software-management/popt"
arch="all"
license="X11"
-depends=""
-makedepends=""
-source="http://ftp.rpm.org/$pkgname/releases/$pkgname-1.x/$pkgname-$pkgver.tar.gz"
subpackages="$pkgname-doc $pkgname-dev $pkgname-lang"
+source="http://ftp.rpm.org/$pkgname/releases/$pkgname-${pkgver%.*}.x/$pkgname-$pkgver.tar.gz"
build() {
./configure \
@@ -28,6 +26,10 @@ check() {
package() {
make DESTDIR="$pkgdir" install
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+
+ mkdir -p "$pkgdir"/usr/lib
+ mv "$pkgdir"/lib/pkgconfig "$pkgdir"/usr/lib
}
sha512sums="86422e8762adda3d02d46c20ac74ffe389d4f991d552b6fea729f007345b6426cbeb71160284e2deaa2ce44ce754a9e6cf6ccbd64bff9bc2253df40cdc2f79a5 popt-1.18.tar.gz"