aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTBK <tbk@jjtc.eu>2020-04-25 12:51:26 +0200
committerLeo <thinkabit.ukim@gmail.com>2020-04-25 16:00:02 +0000
commit027f1c95fdc4d7fd4ec94b96a794d7680baad5fe (patch)
tree373eb5191f2faa4ca7ae8edc67768c76d137ffa0
parent7e641e4796b714d7b9b8a231cf31ab19c580154c (diff)
downloadaports-027f1c95fdc4d7fd4ec94b96a794d7680baad5fe.tar.gz
aports-027f1c95fdc4d7fd4ec94b96a794d7680baad5fe.tar.bz2
aports-027f1c95fdc4d7fd4ec94b96a794d7680baad5fe.tar.xz
main/sysfsutils: modernize
- Update url to the new project home - Clarify license - Add static subpkg - Modernize
-rw-r--r--main/sysfsutils/APKBUILD24
1 files changed, 11 insertions, 13 deletions
diff --git a/main/sysfsutils/APKBUILD b/main/sysfsutils/APKBUILD
index 14b86ef369..e6b8b32b43 100644
--- a/main/sysfsutils/APKBUILD
+++ b/main/sysfsutils/APKBUILD
@@ -1,25 +1,23 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=sysfsutils
pkgver=2.1.0
-pkgrel=8
+_pkgver=${pkgver//./_}
+pkgrel=9
pkgdesc="System Utilities Based on Sysfs"
-url="http://linux-diag.sourceforge.net/Sysfsutils.html"
+url="https://github.com/linux-ras/sysfsutils"
arch="all"
-options="!check" # No test suite.
-license="GPL-2.0-only, LGPL-2.1-only"
-depends=""
-makedepends=""
-subpackages="$pkgname-dev $pkgname-doc"
-source="https://downloads.sourceforge.net/sourceforge/linux-diag/$pkgname-$pkgver.tar.gz"
+options="!check" # No test suite
+license="GPL-2.0-only AND LGPL-2.1-only"
+subpackages="$pkgname-static $pkgname-dev $pkgname-doc"
+source="https://github.com/linux-ras/sysfsutils/archive/sysfsutils-$_pkgver.tar.gz"
+builddir="$srcdir/$pkgname-$pkgname-$_pkgver"
prepare() {
- cd "$builddir"
update_config_sub
default_prepare
}
build() {
- cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -29,7 +27,7 @@ build() {
}
package() {
- cd "$builddir"
- make DESTDIR="$pkgdir"/ install
+ make DESTDIR="$pkgdir" install
}
-sha512sums="485902d98b41a69343cb037883d0c0a1de8a1a4aed657cd4528fe10bc845ac51629657dff01deef042e57c9bd9243095e23fc931d06d74db31b03c5f0a18cf07 sysfsutils-2.1.0.tar.gz"
+
+sha512sums="f9e2dd77df5de7323c41940781eb161aaad092045379df13abc248c0dd8455ba9a793e2ee9f2b6d3effe87e07ea3e8cdc012bab926a49ba7f4fd48f22b3138f0 sysfsutils-2_1_0.tar.gz"