mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-26 17:01:34 +02:00
36 lines
979 B
Plaintext
36 lines
979 B
Plaintext
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
|
|
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
|
|
pkgname=sparse
|
|
pkgver=0.6.0
|
|
pkgrel=0
|
|
pkgdesc="A semantic parser of source files"
|
|
url="http://sparse.wiki.kernel.org/"
|
|
arch="all"
|
|
license="MIT"
|
|
depends="gcc"
|
|
depends_dev=""
|
|
makedepends="libxml2-dev"
|
|
install=""
|
|
subpackages="$pkgname-doc"
|
|
source="https://www.kernel.org/pub/software/devel/$pkgname/dist/$pkgname-$pkgver.tar.xz"
|
|
|
|
builddir="$srcdir"/$pkgname-$pkgver
|
|
build() {
|
|
cd "$builddir"
|
|
make PREFIX=/usr
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
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 \
|
|
"$pkgdir"/usr/share/doc/$pkgname/
|
|
}
|
|
|
|
sha512sums="5c6c88f203c941bf0efd28802ef91641c96e7d4b4688a5176d091ff0fd6a650d9147e590b631602a8bd08994a35261977569367861a6d605ccdd25e4a07debf9 sparse-0.6.0.tar.xz"
|