From 52af2385bdb479dc5ded712faee5f6a46a9e89d8 Mon Sep 17 00:00:00 2001 From: James Mills Date: Sun, 29 Apr 2007 01:38:55 +1000 Subject: [PATCH] ncmpc: Adapted suggested changes from Simone --- ncmpc/.footprint | 6 ++++-- ncmpc/Pkgfile | 34 ++++++++++++++++++++-------------- 2 files changed, 24 insertions(+), 16 deletions(-) diff --git a/ncmpc/.footprint b/ncmpc/.footprint index 56a761808..ed7542af1 100644 --- a/ncmpc/.footprint +++ b/ncmpc/.footprint @@ -1,8 +1,10 @@ drwxr-xr-x root/root usr/ drwxr-xr-x root/root usr/bin/ -rwxr-xr-x root/root usr/bin/ncmpc +drwxr-xr-x root/root usr/etc/ +drwxr-xr-x root/root usr/etc/ncmpc/ +-rw-r--r-- root/root usr/etc/ncmpc/config +-rw-r--r-- root/root usr/etc/ncmpc/keys drwxr-xr-x root/root usr/man/ drwxr-xr-x root/root usr/man/man1/ -rw-r--r-- root/root usr/man/man1/ncmpc.1.gz -drwxr-xr-x root/root usr/share/ -drwxr-xr-x root/root usr/share/ncmpc/ diff --git a/ncmpc/Pkgfile b/ncmpc/Pkgfile index 1b575dbea..6e4c928b3 100644 --- a/ncmpc/Pkgfile +++ b/ncmpc/Pkgfile @@ -1,23 +1,29 @@ -# Description: MPD nCurses Client. -# URL: http://www.musicpd.org/ -# Maintainer: James Mills,, prologic at shortcircuit dot net dot au -# Packager: James Mills,, prologic at shortcircuit dot net dot au +# Description: Ncurse-based MPD console client +# URL: http://www.musicpd.org/ +# Maintainer: James Mills, prologic at shortcircuit dot net dot au # -# Depends on: mpd, ncurses +# Depends on: ncurses name=ncmpc version=0.11.1 -release=1 -source=(http://mercury.chem.pitt.edu/~shank/$name-$version.tar.gz) +release=2 +source=(http://hem.bredband.net/kaw/${name}/files/${name}-${version}.tar.gz) build() { - cd $name-$version + cd $name-$version + + ./configure \ + --sysconfdir=/usr/etc \ + --prefix=/usr \ + --disable-nls + make + make install DESTDIR=$PKG - ./configure \ - --prefix=/usr \ - --disable-nls + mkdir -p $PKG/usr/etc/ncmpc - make && make DESTDIR=$PKG install - rm -rf $PKG/usr/share/doc - chown -R root:root $PKG + install -m 0644 doc/config.sample $PKG/usr/etc/ncmpc/config + install -m 0644 doc/keys.sample $PKG/usr/etc/ncmpc/keys + + rm -rf $PKG/usr/share + chown -R root:root $PKG }