aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart Ribbers <bribbers@disroot.org>2021-06-22 15:30:36 +0200
committerBart Ribbers <bribbers@disroot.org>2021-06-22 15:32:31 +0200
commit263bb2b7cedae2288988b22d1ffc1169ba29f1f2 (patch)
treec9b13e6918138b93dc71aeb6e3266fe3cb7fce00
parent94688ff0f36e543ee7740183aa3edb5c5efbdd5c (diff)
downloadaports-263bb2b7cedae2288988b22d1ffc1169ba29f1f2.tar.gz
aports-263bb2b7cedae2288988b22d1ffc1169ba29f1f2.tar.bz2
aports-263bb2b7cedae2288988b22d1ffc1169ba29f1f2.tar.xz
community/nedit: fix build on riscv64
-rw-r--r--community/nedit/APKBUILD17
1 files changed, 9 insertions, 8 deletions
diff --git a/community/nedit/APKBUILD b/community/nedit/APKBUILD
index 5923a75ab8..a7ff5e6c22 100644
--- a/community/nedit/APKBUILD
+++ b/community/nedit/APKBUILD
@@ -9,30 +9,31 @@ arch="all"
license="GPL-2.0-or-later"
# perl for docs, bison and flex are used but may be optional
makedepends="$depends_dev motif-dev bison flex perl"
-subpackages="$pkgname-doc"
-source="https://downloads.sourceforge.net/project/$pkgname/$pkgname-source/$pkgname-$pkgver-src.tar.gz"
+[ "$CARCH" != "riscv64" ] && subpackages="$pkgname-doc"
+source="https://downloads.sourceforge.net/project/nedit/nedit-source/nedit-$pkgver-src.tar.gz"
+options="!check" # No tests
-builddir="$srcdir/$pkgname-$pkgver"
build() {
- cd "$builddir"
make linux
- make docs || make -j1 docs || { env; exit 1; }
+ if [ "$CARCH" != "riscv64" ]; then
+ make docs
+ make -j1 docs
+ fi
}
package() {
- cd "$builddir"
install -s -Dm 0755 source/nedit "$pkgdir"/usr/bin/nedit
install -s -Dm 0755 source/nc "$pkgdir"/usr/bin/nedit-nc
}
doc() {
- cd "$builddir"
default_doc
+
+ cd "$builddir"
for i in README COPYRIGHT ReleaseNotes \
doc/nedit.doc doc/nedit.html doc/faq.txt; do
install -Dm 0644 $i "$subpkgdir"/usr/share/doc/nedit
done
-
}
sha512sums="cf242d2f8eea4c78649dbeb741f545a3dc8ffaf5bb36239794a4b2635420e5445fa1c77472add79c05ec081d71a0b9df4431f48db365a71692e43869fd4e7932 nedit-5.7-src.tar.gz"