Commit bd4b9438 authored by xihh87's avatar xihh87
Browse files

testing/9base: compile on all architectures

Also fix abuild lint issues.

Closes #10855
parent 7d625239
Pipeline #594 failed with stages
in 1 minute and 24 seconds
......@@ -7,12 +7,9 @@ pkgdesc="A port of various Plan 9 tools for Unix."
url="https://tools.suckless.org/9base/"
arch="all"
license="MIT"
depends=""
makedepends="libucontext-dev linux-headers"
install=""
subpackages="$pkgname-doc $pkgname-troff"
source="https://dl.suckless.org/tools/$pkgname-$pkgver.tar.gz config.mk.x86_64 config.mk.x86 dirread.patch"
builddir="$srcdir/$pkgname-$pkgver"
source="https://dl.suckless.org/tools/9base-$pkgver.tar.gz config.mk.x86_64 config.mk.i686 config.mk.s390x config.mk.ppc64le dirread.patch"
prepare() {
default_prepare
......@@ -20,12 +17,10 @@ prepare() {
}
build() {
cd "$builddir"
make DESTDIR="$pkgdir" all
}
package() {
cd "$builddir"
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
make DESTDIR="$pkgdir" install
}
......@@ -46,5 +41,7 @@ troff() {
sha512sums="38108a94118b56c6f3982e692beb1068c52f9aecd74447d6b552b77fae5e365eab72b4781bdf07d9696ac89d54371c1cae8cc0363de510b53988302acef50dba 9base-6.tar.gz
3a30955d59ad78c1bc4e2fbd0f511eb85624ed48b0aeceef436e3456f685690e064eb1f171a2080a34a0fcb40d874277a282864c720c9e612eca3ad848dec35e config.mk.x86_64
7a58d4762c5ec9a0191f2cce15b23b2e60ec9445c357dc2e3925a5b4d5dec1c5eed6fb3565be07a25616c0c2b0768c21737b2d35082deb17bfc7a7f5f0c0d2a6 config.mk.x86
7a58d4762c5ec9a0191f2cce15b23b2e60ec9445c357dc2e3925a5b4d5dec1c5eed6fb3565be07a25616c0c2b0768c21737b2d35082deb17bfc7a7f5f0c0d2a6 config.mk.i686
6d0af248a9a10b36a26f2f404696f68447180db945d88357fd3ecb0e932940f99f3d64bcfacfba227d96a64ce19134d95be27374b44f6596e11ea6e4875cdb70 config.mk.s390x
27ac026add3d4b70c0e6aee6d7f5e62e955b09b07ecd9fa36b669bff8824814266f9b19881381da518b96d56fd31a8ef930deb69041eb54d330113ae896770d4 config.mk.ppc64le
5b47647245366e786059a28747fe9a36fd87d9df2e1a7f68e9a41f4adb7ec96f230a9abe94acbe5f82d62f4f85b061ff7ab7356d32072dd9ef7f677379f456f5 dirread.patch"
# Customize to fit your system
# paths
PREFIX = /usr/lib/9base
MANPREFIX = ${PREFIX}/share/man
VERSION = 6
OBJTYPE = ppc64
# Linux/BSD
#CFLAGS += -Wall -Wno-missing-braces -Wno-parentheses -Wno-switch -c -I. -DPREFIX="\"${PREFIX}\""
CFLAGS += -c -I. -DPREFIX="\"${PREFIX}\""
LDFLAGS += -static
# Solaris
#CFLAGS = -fast -xtarget=ultra -D__sun__ -c -I. -DPREFIX="\"${PREFIX}\""
#LDFLAGS = -dn
# compiler
AR = ar rc
CC = cc
YACC = ../yacc/9yacc
# Customize to fit your system
# paths
PREFIX = /usr/lib/9base
MANPREFIX = ${PREFIX}/share/man
VERSION = 6
OBJTYPE = s390
# Linux/BSD
#CFLAGS += -Wall -Wno-missing-braces -Wno-parentheses -Wno-switch -c -I. -DPREFIX="\"${PREFIX}\""
CFLAGS += -c -I. -DPREFIX="\"${PREFIX}\""
LDFLAGS += -static
# Solaris
#CFLAGS = -fast -xtarget=ultra -D__sun__ -c -I. -DPREFIX="\"${PREFIX}\""
#LDFLAGS = -dn
# compiler
AR = ar rc
CC = cc
YACC = ../yacc/9yacc
Supports Markdown
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