From d150a5f3e462fa7fe194a805a4aa0076f4d03ab9 Mon Sep 17 00:00:00 2001 From: Deposite Pirate Date: Sun, 16 Sep 2018 18:48:36 +0200 Subject: Add ports. --- base/nano/nano.build | 99 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 99 insertions(+) create mode 100755 base/nano/nano.build (limited to 'base/nano/nano.build') diff --git a/base/nano/nano.build b/base/nano/nano.build new file mode 100755 index 0000000..0f17409 --- /dev/null +++ b/base/nano/nano.build @@ -0,0 +1,99 @@ +#!/bin/bash +# +# Maintainer: Deposite Pirate + +source /usr/src/ports/Build/build.sh + +NAME=nano +MAJOR=2.2 +VERSION=${MAJOR}.6 +BUILD=2 + +# Description + +cat > ${PKG}/install/slack-desc <> ${PKG}/install/doinst.sh < /dev/null + fi + done +} + +install_info nano + +config etc/nanorc.new +EOF + +# Sources + +SRCNAME[0]=${NAME} +SRCVERS[0]=${VERSION} +SRCPACK[0]=http://www.nano-editor.org/dist/v${MAJOR}/${SRCNAME[0]}-${SRCVERS[0]}.tar.gz +SRCCOPY[0]="GPL3 FDL12" + +build0() +{ +CFLAGS="${FLAGS}" CXXFLAGS="${FLAGS}" \ +./configure \ + --build="${ARCH}-slackware-linux" \ + --disable-dependency-tracking \ + --disable-rpath \ + --prefix="${SYS_DIR[usr]}" \ + --mandir="${SYS_DIR[man]}" \ + --infodir="${SYS_DIR[info]}" \ + --sysconfdir="${SYS_DIR[etc]}" \ + --datadir="${SYS_DIR[share]}/application-data" \ + --localedir="${SYS_DIR[share]}/locale" \ + --libdir="${SYS_DIR[lib]}" \ + --localstatedir="${SYS_DIR[var]}" \ + --disable-wrapping-as-root \ + --enable-utf8 +make ${JOBS} +make install DESTDIR="${PKG}" +doc AUTHORS THANKS UPGRADE +changelog NEWS +install.dir ${PKG}${SYS_DIR[etc]} +install.doc doc/nanorc.sample ${PKG}${SYS_DIR[etc]}/nanorc.new +install.dir ${PKG}${SYS_DIR[html]}/${NAME} +install.doc doc/faq.html ${PKG}${SYS_DIR[html]}/${NAME} +rm -rf ${PKG}${SYS_DIR[share]}/application-data/nano/man-html +} -- cgit v1.2.3-70-g09d2