#!/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 }