[arch-commits] Commit in 9base/repos (4 files)
Felix Yan
felixonmars at archlinux.org
Tue Jul 7 21:26:30 UTC 2020
Date: Tuesday, July 7, 2020 @ 21:26:30
Author: felixonmars
Revision: 660423
archrelease: copy trunk to community-staging-x86_64
Added:
9base/repos/community-staging-x86_64/
9base/repos/community-staging-x86_64/9
(from rev 660420, 9base/trunk/9)
9base/repos/community-staging-x86_64/PKGBUILD
(from rev 660420, 9base/trunk/PKGBUILD)
9base/repos/community-staging-x86_64/plan9.sh
(from rev 660421, 9base/trunk/plan9.sh)
----------+
9 | 13 +++++++++++++
PKGBUILD | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
plan9.sh | 4 ++++
3 files changed, 65 insertions(+)
Copied: 9base/repos/community-staging-x86_64/9 (from rev 660420, 9base/trunk/9)
===================================================================
--- community-staging-x86_64/9 (rev 0)
+++ community-staging-x86_64/9 2020-07-07 21:26:30 UTC (rev 660423)
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+PLAN9=${PLAN9:-/opt/plan9}
+export PLAN9
+
+case "$PATH" in
+ $PLAN9/bin:*) ;;
+ *) export PATH=$PLAN9/bin:$PATH ;;
+esac
+
+if [ $# -gt 0 ]; then
+ exec "$@"
+fi
Copied: 9base/repos/community-staging-x86_64/PKGBUILD (from rev 660420, 9base/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-07-07 21:26:30 UTC (rev 660423)
@@ -0,0 +1,48 @@
+# Maintainer: Chris Brannon <cmbrannon79 at gmail.com>
+# Contributor: Jeff Mickey <j at codemac.net>
+# Contributor: Aaron, phrakture, Griffin <aaron at archlinux.org>
+# Contributor: Jeffrey 'jf' Lim <jfs.world at gmail.com>
+
+pkgname=9base
+pkgver=6
+pkgrel=7
+pkgdesc="Port of various original Plan9 tools to unix"
+url="https://tools.suckless.org/9base"
+source=(https://dl.suckless.org/tools/$pkgname-$pkgver.tar.gz 9 plan9.sh)
+depends=(sh)
+conflicts=('plan9port' '9rc-devel')
+provides=('plan9')
+arch=('x86_64')
+license=('custom')
+
+build() {
+ cd $pkgname-$pkgver
+
+ CFLAGS+=' -fcommon' # https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common
+
+ case $CARCH in
+ i686) sed -i 's#^OBJTYPE\s.*$#OBJTYPE = 386#' config.mk ;;
+ x86_64) sed -i 's#^OBJTYPE\s.*$#OBJTYPE = x86_64#' config.mk ;;
+ esac
+
+ sed -i 's#^PREFIX\s.*$#PREFIX = /opt/plan9#' config.mk
+ sed -i 's#^CFLAGS\s*+=#CFLAGS += -DPLAN9PORT #' config.mk
+
+ # Force dynamic linking. Several of the programs in 9base won't work
+ # when statically linked against the latest glibc.
+ sed -i '/-static/d' config.mk
+
+ make
+}
+
+package() {
+ cd $pkgname-$pkgver
+ make DESTDIR="$pkgdir" install
+ install -m755 ../9 "$pkgdir/opt/plan9/bin/"
+ install -D -m755 ../plan9.sh "$pkgdir/etc/profile.d/plan9.sh"
+ install -D -m644 LICENSE "$pkgdir/usr/share/licenses/9base/LICENSE"
+}
+
+md5sums=('5a4684c13fe19b00a50c2cf926d5cafc'
+ 'ae7108b9f26bed388e9055f35eef2986'
+ '62a9e52043d9c32967fcae9018fffb56')
Copied: 9base/repos/community-staging-x86_64/plan9.sh (from rev 660421, 9base/trunk/plan9.sh)
===================================================================
--- community-staging-x86_64/plan9.sh (rev 0)
+++ community-staging-x86_64/plan9.sh 2020-07-07 21:26:30 UTC (rev 660423)
@@ -0,0 +1,4 @@
+export PLAN9=/opt/plan9
+export PATH=$PATH:$PLAN9/bin
+export MANPATH=$MANPATH:$PLAN9/man
+
More information about the arch-commits
mailing list