Commit a26d70ac authored by Sören Tempel's avatar Sören Tempel
Browse files

community/chicken: modernize APKBUILD

parent 3bbd1c00
...@@ -11,7 +11,6 @@ license="BSD-3-Clause" ...@@ -11,7 +11,6 @@ license="BSD-3-Clause"
depends="gcc libc-dev $pkgname-dev $pkgname-libs" depends="gcc libc-dev $pkgname-dev $pkgname-libs"
subpackages="$pkgname-doc $pkgname-libs $pkgname-dev $pkgname-feathers::noarch" subpackages="$pkgname-doc $pkgname-libs $pkgname-dev $pkgname-feathers::noarch"
source="https://code.call-cc.org/releases/$pkgver/$pkgname-$pkgver.tar.gz" source="https://code.call-cc.org/releases/$pkgver/$pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver
# secfixes: # secfixes:
# 4.12.0-r3: # 4.12.0-r3:
...@@ -24,19 +23,16 @@ builddir="$srcdir"/$pkgname-$pkgver ...@@ -24,19 +23,16 @@ builddir="$srcdir"/$pkgname-$pkgver
build() { build() {
# chicken does not support parallel builds. # chicken does not support parallel builds.
make -j1 PLATFORM=linux PREFIX=/usr \ make -j1 PLATFORM=linux PREFIX=/usr
-C "$builddir"
} }
check() { check() {
make -j1 PLATFORM=linux \ make -j1 PLATFORM=linux check
-C "$builddir" check
} }
package() { package() {
# chicken does not support parallel installs. # chicken does not support parallel installs.
make -j1 PLATFORM=linux PREFIX=/usr DESTDIR="$pkgdir" \ make -j1 PLATFORM=linux PREFIX=/usr DESTDIR="$pkgdir" install
-C "$builddir" install
# Move documentation to /usr/share/doc. # Move documentation to /usr/share/doc.
mkdir -p "$pkgdir"/usr/share/doc/ mkdir -p "$pkgdir"/usr/share/doc/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment