aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2019-01-25 09:52:59 +0100
committerSören Tempel <soeren+git@soeren-tempel.net>2019-01-30 20:21:36 +0100
commit0a08d9552741b262abe442627dc8317ae95f644e (patch)
treec764a0520d696687a4fe84eae2de946e232834a0
parent2d17a11819c77db1f7f023b01fbfabc790980fba (diff)
downloadaports-0a08d9552741b262abe442627dc8317ae95f644e.tar.gz
aports-0a08d9552741b262abe442627dc8317ae95f644e.tar.bz2
aports-0a08d9552741b262abe442627dc8317ae95f644e.tar.xz
community/sparse: upgrade to 0.6.0
While at it also modernize it a bit.
-rw-r--r--community/sparse/APKBUILD24
1 files changed, 9 insertions, 15 deletions
diff --git a/community/sparse/APKBUILD b/community/sparse/APKBUILD
index 1cddc40bc8..631de6e410 100644
--- a/community/sparse/APKBUILD
+++ b/community/sparse/APKBUILD
@@ -1,7 +1,7 @@
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=sparse
-pkgver=0.5.2
+pkgver=0.6.0
pkgrel=0
pkgdesc="A semantic parser of source files"
url="http://sparse.wiki.kernel.org/"
@@ -11,31 +11,25 @@ depends="gcc"
depends_dev=""
makedepends="libxml2-dev"
install=""
-subpackages="$pkgname-dev $pkgname-doc"
-source="https://www.kernel.org/pub/software/devel/sparse/dist/$pkgname-$pkgver.tar.xz"
+subpackages="$pkgname-doc"
+source="https://www.kernel.org/pub/software/devel/$pkgname/dist/$pkgname-$pkgver.tar.xz"
builddir="$srcdir"/$pkgname-$pkgver
-prepare() {
- default_prepare || return 1
- sed -i -e '/^PREFIX=/s:=.*:=/usr:' \
- -e '/^CFLAGS =/{s:=:+= $(CPPFLAGS):;s:${CFLAGS}::}' \
- "$builddir"/Makefile || return 1
-}
-
build() {
cd "$builddir"
- make PREFIX=/usr || return 1
+ make PREFIX=/usr
}
package() {
cd "$builddir"
- make DESTDIR="$pkgdir" install || return 1
+ make CFLAGS="$CFLAGS" LD="${LD:-gcc}" \
+ AR="${AR:-ar}" CC="${CC:-gcc}" \
+ DESTDIR="$pkgdir" install
mkdir -p "$pkgdir"/usr/share/doc/$pkgname/
install -m644 FAQ README \
Documentation/data-structures.txt \
- Documentation/sparse.txt \
- "$pkgdir"/usr/share/doc/$pkgname/ || return 1
+ "$pkgdir"/usr/share/doc/$pkgname/
}
-sha512sums="1c2e541db97d89b2dbe57c07f0af04831f4ef85dae316017c2a192c9da2fdf5f660d6a337a1a7b620080540fef97e9cd4582524d75b8b438861d030a90f135e4 sparse-0.5.2.tar.xz"
+sha512sums="5c6c88f203c941bf0efd28802ef91641c96e7d4b4688a5176d091ff0fd6a650d9147e590b631602a8bd08994a35261977569367861a6d605ccdd25e4a07debf9 sparse-0.6.0.tar.xz"