Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (31 sloc) 835 Bytes
PKG_VER="0.8"
PKG_SRCS="http://prdownloads.sourceforge.net/vifm/vifm-$PKG_VER.tar.bz2"
PKG_DESC="A two-pane file manager"
PKG_DEPS="musl ncurses file"
get_latest() {
wget -q -O - "http://www.vifm.info/" |
grep "Vifm v" |
head -n 1 |
awk '{print $2}' |
cut -f 1 -d \< |
sed s~^v~~
}
build() {
LIBS="-lmagic -lz $LIBS" \
./configure --prefix="" \
--mandir="/man" \
--docdir="/doc/vifm" \
--disable-desktop-files
[ 0 -ne $? ] && return 1
$MAKE
}
package() {
$MAKE DESTDIR="$1" install
install -D -m 644 README "$1/doc/vifm/README"
install -m 644 FAQ "$1/doc/vifm/FAQ"
install -m 644 NEWS "$1/doc/vifm/NEWS"
install -m 644 ChangeLog "$1/doc/vifm/ChangeLog"
install -m 644 AUTHORS "$1/doc/vifm/AUTHORS"
install -m 644 THANKS "$1/doc/vifm/THANKS"
install -m 644 COPYING "$1/doc/vifm/COPYING"
}