This commit is contained in:
milisbir 2018-01-26 15:51:50 +02:00
parent 87b983dd92
commit a3b0eabe47
3 changed files with 50 additions and 0 deletions

View File

@ -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

View File

@ -0,0 +1,4 @@
export PLAN9=/opt/plan9
export PATH=$PATH:$PLAN9/bin
export MANPATH=$MANPATH:$PLAN9/man

View File

@ -0,0 +1,33 @@
# Tanım: Plan9 araçlarının unix uyarlaması
# URL: http://tools.suckless.org/9base
# Paketçi: Cihan_Alkan
# Gerekler: python
# Grup: sistem
isim=9base
surum=6
devir=1
kaynak=(http://dl.suckless.org/tools/$isim-$surum.tar.gz
9
plan9.sh)
derle() {
cd $isim-$surum
sed -i 's#^OBJTYPE\s.*$#OBJTYPE = x86_64#' config.mk
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
make DESTDIR="$PKG" install
install -m755 ../9 "$PKG/opt/plan9/bin/"
install -D -m755 ../plan9.sh "$PKG/etc/profile.d/plan9.sh"
install -D -m644 LICENSE "$PKG/usr/share/licenses/9base/LICENSE"
}