xfce4-power-manager: Cleanup the Pkgfile

I disabled the lxde support and also moved the
man pages into the right location.

Signed-off-by: Leo Unglaub <leo@leo-unglaub.net>
This commit is contained in:
Leo Unglaub 2015-03-08 14:29:27 +00:00
parent 7da39ebd0f
commit 7998120edf
2 changed files with 27 additions and 13 deletions

View File

@ -12,6 +12,10 @@ drwxr-xr-x root/root usr/lib/xfce4/panel/
drwxr-xr-x root/root usr/lib/xfce4/panel/plugins/
-rwxr-xr-x root/root usr/lib/xfce4/panel/plugins/libxfce4powermanager.la
-rwxr-xr-x root/root usr/lib/xfce4/panel/plugins/libxfce4powermanager.so
drwxr-xr-x root/root usr/man/
drwxr-xr-x root/root usr/man/man1/
-rw-r--r-- root/root usr/man/man1/xfce4-power-manager-settings.1.gz
-rw-r--r-- root/root usr/man/man1/xfce4-power-manager.1.gz
drwxr-xr-x root/root usr/sbin/
-rwxr-xr-x root/root usr/sbin/xfce4-pm-helper
-rwxr-xr-x root/root usr/sbin/xfpm-power-backlight-helper
@ -171,10 +175,6 @@ drwxr-xr-x root/root usr/share/icons/hicolor/scalable/status/
-rw-r--r-- root/root usr/share/icons/hicolor/scalable/status/xfpm-ups-060.svg
-rw-r--r-- root/root usr/share/icons/hicolor/scalable/status/xfpm-ups-080.svg
-rw-r--r-- root/root usr/share/icons/hicolor/scalable/status/xfpm-ups-100.svg
drwxr-xr-x root/root usr/share/man/
drwxr-xr-x root/root usr/share/man/man1/
-rw-r--r-- root/root usr/share/man/man1/xfce4-power-manager-settings.1.gz
-rw-r--r-- root/root usr/share/man/man1/xfce4-power-manager.1.gz
drwxr-xr-x root/root usr/share/polkit-1/
drwxr-xr-x root/root usr/share/polkit-1/actions/
-rw-r--r-- root/root usr/share/polkit-1/actions/org.xfce.power.policy

View File

@ -10,16 +10,30 @@ version=1.4.3
release=1
source=(http://archive.xfce.org/src/xfce/$name/${version%.*}/$name-$version.tar.bz2)
build () {
cd $name-$version
build ()
{
# go into the source directory
cd $SRC/$name-$version
./configure --prefix=/usr \
--disable-debug
make
make DESTDIR=$PKG install
# configure the power manager
./configure \
--prefix=/usr \
--mandir=/usr/man \
--disable-debug \
--disable-dependency-tracking \
--disable-nls \
--disable-lxdepanel \
--disable-network-manager
rm -rf $PKG/usr/share/{locale,doc}
find $PKG/usr -type f -name '*.desktop' \
-exec sed -r '/\[.+\]=/d' -i {} \;
# make the power manager
make
make DESTDIR=$PKG install
# cleanup time
rm -rf $PKG/usr/share/{locale,doc}
find $PKG/usr -type f -name '*.desktop' \
-exec sed -r '/\[.+\]=/d' -i {} \;
}