aboutsummaryrefslogtreecommitdiffstats
path: root/main/procps/APKBUILD
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2016-12-09 15:20:38 +0100
committerJakub Jirutka <jakub@jirutka.cz>2016-12-09 16:22:40 +0100
commit0f2616fa72514442f989b1451f435a1bb5c7ff3b (patch)
tree61c8c58c73c23fb7ad11d28a6f9ab709a0df61c9 /main/procps/APKBUILD
parent1b88bb358a603c4b665475558bee220b38003971 (diff)
downloadaports-0f2616fa72514442f989b1451f435a1bb5c7ff3b.tar.bz2
aports-0f2616fa72514442f989b1451f435a1bb5c7ff3b.tar.xz
main/procps: improve abuild
Diffstat (limited to 'main/procps/APKBUILD')
-rw-r--r--main/procps/APKBUILD32
1 files changed, 16 insertions, 16 deletions
diff --git a/main/procps/APKBUILD b/main/procps/APKBUILD
index cd8c7a1431..3efefa3c9f 100644
--- a/main/procps/APKBUILD
+++ b/main/procps/APKBUILD
@@ -1,34 +1,31 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=procps
-_projname="${pkgname}-ng"
-_githash="e0784ddaed30d095bb1d9a8ad6b5a23d10a212c4"
pkgver=3.3.12
pkgrel=0
pkgdesc="Utilities for monitoring your system and processes on your system"
-url="https://gitlab.com/${_projname}/${pkgname}"
+url="https://gitlab.com/procps-ng/procps"
arch="all"
license="GPL LGPL"
-depends=
makedepends="ncurses-dev gettext-dev autoconf automake libtool"
subpackages="$pkgname-dev $pkgname-doc libproc"
-source="${pkgname}-${pkgver}.tar.gz::https://gitlab.com/${_projname}/${pkgname}/repository/archive.tar.gz?ref=v${pkgver}"
-
-_builddir="${srcdir}/${pkgname}-v${pkgver}-${_githash}"
+source="$pkgname-$pkgver.tar.gz::https://gitlab.com/procps-ng/$pkgname/repository/archive.tar.gz?ref=v$pkgver"
+builddir="$srcdir/$pkgname-v$pkgver"
prepare() {
- cd "$_builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
+ # NOTE: Name of the tarball's top-level directory contains SHA1.
+ ln -fs $pkgname-v$pkgver-* "$builddir" || return 1
+
+ default_prepare || return 1
+
+ cd "$builddir"
./autogen.sh
}
build() {
- cd "$_builddir"
+ cd "$builddir"
+
export LIBS="$LIBS -lintl"
- ./configure \
+ ./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/ \
@@ -48,9 +45,11 @@ build() {
}
package() {
- cd "$_builddir"
+ cd "$builddir"
+
make DESTDIR="$pkgdir" ldconfig=true install="install -D" \
install || return 1
+
install -d "$pkgdir"/usr/lib
mv "$pkgdir"/include "$pkgdir"/usr/ \
&& mv "$pkgdir"/lib/pkgconfig "$pkgdir"/usr/lib/
@@ -58,6 +57,7 @@ package() {
libproc() {
pkgdesc="Library for monitoring system and processes"
+
install -d "$subpkgdir"/
mv "$pkgdir"/lib "$subpkgdir"/
}