Initial Commit
This commit is contained in:
@@ -0,0 +1,7 @@
|
|||||||
|
name: nano
|
||||||
|
description: A simple text editor
|
||||||
|
version: 7.2
|
||||||
|
url: https://www.nano-editor.org/
|
||||||
|
license: GPL3
|
||||||
|
architecture: any
|
||||||
|
type: source
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
# This is the source.sh script. It is executed by BPM in a temporary directory when compiling a source package
|
||||||
|
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
|
||||||
|
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
|
||||||
|
|
||||||
|
# The prepare function is executed in the root of the temp directory
|
||||||
|
prepare() {
|
||||||
|
wget https://www.nano-editor.org/dist/v"${BPM_PKG_VERSION%%.*}"/nano-"${BPM_PKG_VERSION}".tar.xz
|
||||||
|
tar -xvf nano-"${BPM_PKG_VERSION}".tar.xz --strip-components=1 -C "$BPM_SOURCE"
|
||||||
|
}
|
||||||
|
|
||||||
|
# The build function is executed in the source directory
|
||||||
|
build() {
|
||||||
|
./configure --prefix=/usr \
|
||||||
|
--sysconfdir=/etc \
|
||||||
|
--enable-utf8 \
|
||||||
|
--docdir=/usr/share/doc/nano
|
||||||
|
make
|
||||||
|
}
|
||||||
|
|
||||||
|
# The package function is executed in the source directory
|
||||||
|
package() {
|
||||||
|
make DESTDIR="$BPM_OUTPUT" install
|
||||||
|
install -v -m644 doc/{nano.html,sample.nanorc} "$BPM_OUTPUT"/usr/share/doc/nano
|
||||||
|
install -d -m755 "$BPM_OUTPUT"/usr/share/licenses/nano
|
||||||
|
install -v -m644 COPYING "$BPM_OUTPUT"/usr/share/licenses/nano/COPYING
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user