opt/slim/Pkgfile
2010-08-22 22:44:57 +02:00

30 lines
934 B
Plaintext

# Description: a graphical login utility
# URL: http://slim.berlios.de
# Packager: Simone Rota, sip at crux dot nu
# Maintainer: Thomas Penteker, tek at serverop dot de
# Depends on: xorg-xauth, libjpeg, libpng
name=slim
version=1.3.1
release=2
source=(http://download.berlios.de/$name/$name-$version.tar.gz \
http://jw.tks6.net/files/slim-crux-smooth.tar.gz $name.rc
$name.diff)
build () {
# fix the build with g++ 4.4
patch -p0 -i $SRC/$name.diff
cd $name-$version
sed -i -e "s:-I/usr/include/libpng12:$(pkg-config --cflags-only-I libpng):" \
-e "s:-lpng12:$(pkg-config --libs-only-l libpng):" Makefile
make
make DESTDIR=$PKG install
mkdir $PKG/etc/rc.d
install -m 755 ../$name.rc $PKG/etc/rc.d/$name
cd ../
rm -f slim-crux-smooth/README
cp -r slim-crux-smooth $PKG/usr/share/slim/themes/crux-smooth
chmod 0644 $PKG/usr/share/slim/themes/crux-smooth/*
}