CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
npush: Initial import (verified compilation).
[attic/ports/games-cross.git] / nnn / Pkgfile
1 # Description: Bad Boulder-Dash clone for unix terminals in ASCII
2 # URL: http://sourceforge.net/projects/nnn/
3 # Maintainer: Victor Martinez, pitillo at ono dot com
4 # Arch Maintainer: CRUX-ARM System Team, crux-arm at mikeux dot dyndns dot org
5 # Depends on: ncurses
6
7 name=nnn
8 version=1.0beta
9 release=4
10 source=(http://dl.sourceforge.net/project/$name/$name-sources/$version/NNN-1.0.beta.tar.bz2)
11
12 build() {
13 cd NNN-1.0/src
14 make CC="$CC" CFLAGS="$CFLAGS"
15 install -D -m 0644 ../doc_en/man/nnn.6 $PKG/usr/man/man6/nnn.6
16 mkdir -p $PKG/usr/{share/nnn/bin,bin}
17 install -D -m 0755 nnn $PKG/usr/share/nnn/bin/nnn
18 mv ../levels $PKG/usr/share/nnn/levels
19 cat > $PKG/usr/bin/nnn <<EOF
20 #!/bin/bash
21
22 cd /usr/share/nnn/bin
23 ./nnn \$@
24
25 # End of file
26 EOF
27 chmod +x $PKG/usr/bin/nnn
28
29 }