Switch to new download format and add compilation options
This commit is contained in:
@@ -1,8 +1,19 @@
|
|||||||
name: nano
|
name: nano
|
||||||
description: A simple text editor
|
description: A simple text editor
|
||||||
version: 8.6
|
version: "8.6"
|
||||||
|
revision: 2
|
||||||
url: https://www.nano-editor.org/
|
url: https://www.nano-editor.org/
|
||||||
license: GPL3
|
license: GPL3
|
||||||
architecture: any
|
architecture: any
|
||||||
depends: ["file","glibc","ncurses"]
|
|
||||||
type: source
|
type: source
|
||||||
|
depends:
|
||||||
|
- file
|
||||||
|
- glibc
|
||||||
|
- ncurses
|
||||||
|
keep:
|
||||||
|
- etc/nanorc
|
||||||
|
downloads:
|
||||||
|
- url: https://www.nano-editor.org/dist/v${BPM_PKG_VERSION%%.*}/nano-${BPM_PKG_VERSION}.tar.xz
|
||||||
|
extract_to_bpm_source: true
|
||||||
|
extract_strip_components: 1
|
||||||
|
checksum: f7abfbf0eed5f573ab51bd77a458f32d82f9859c55e9689f819d96fe1437a619
|
||||||
|
|||||||
@@ -2,25 +2,27 @@
|
|||||||
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
|
# 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
|
# 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
|
# The build function is executed in the source directory
|
||||||
|
# This function is used to compile the source code
|
||||||
build() {
|
build() {
|
||||||
./configure --prefix=/usr \
|
./configure --prefix=/usr \
|
||||||
--sysconfdir=/etc \
|
--sysconfdir=/etc \
|
||||||
--enable-utf8 \
|
--enable-nanorc \
|
||||||
|
--enable-utf8 \
|
||||||
|
--enable-color \
|
||||||
|
--enable-multibuffer \
|
||||||
--docdir=/usr/share/doc/nano
|
--docdir=/usr/share/doc/nano
|
||||||
make
|
make
|
||||||
}
|
}
|
||||||
|
|
||||||
# The package function is executed in the source directory
|
# The package function is executed in the source directory
|
||||||
|
# This function is used to move the compiled files into the output directory
|
||||||
package() {
|
package() {
|
||||||
make DESTDIR="$BPM_OUTPUT" install
|
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 configuration file
|
||||||
install -v -m644 COPYING "$BPM_OUTPUT"/usr/share/licenses/nano/COPYING
|
install -Dm644 doc/sample.nanorc "$BPM_OUTPUT"/etc/nanorc
|
||||||
|
|
||||||
|
# Install package license
|
||||||
|
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/nano/COPYING
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user