2017-04-17 12:40:47 +02:00
|
|
|
|
# Description: Grafiksel oturum açma yardımcı programı
|
|
|
|
|
# URL: http://sourceforge.net/projects/slim.berlios
|
|
|
|
|
# Packager: milisarge
|
2017-06-06 04:41:29 +02:00
|
|
|
|
# Depends on: xorg-xauth libjpeg-turbo libpng cmake xorg-libxft
|
2016-03-12 17:24:37 +01:00
|
|
|
|
|
|
|
|
|
name=slim
|
2017-08-16 01:32:13 +02:00
|
|
|
|
version=2.0
|
|
|
|
|
release=1
|
|
|
|
|
source=(http://kaynaklar.milislinux.org/slim-$version.tar.gz
|
|
|
|
|
panel.png
|
2017-06-06 04:46:23 +02:00
|
|
|
|
https://raw.githubusercontent.com/yakar/milis-linux-wallpapers/master/milis-linux-tree.png
|
2017-06-06 04:41:29 +02:00
|
|
|
|
slim.conf
|
2017-08-09 17:38:11 +02:00
|
|
|
|
CMakeLists.txt.patch
|
|
|
|
|
slim-1.3.6_freetype-2.5.1.diff
|
2017-08-09 16:03:16 +02:00
|
|
|
|
slim.logrotate
|
2017-06-06 04:41:29 +02:00
|
|
|
|
slim.theme)
|
2016-03-12 17:24:37 +01:00
|
|
|
|
|
|
|
|
|
build () {
|
2017-08-09 17:38:11 +02:00
|
|
|
|
cd $name-$version
|
2016-03-12 17:24:37 +01:00
|
|
|
|
|
2017-08-09 17:38:11 +02:00
|
|
|
|
patch -p0 < $SRC/CMakeLists.txt.patch
|
|
|
|
|
patch -p1 < $SRC/slim-1.3.6_freetype-2.5.1.diff
|
2016-03-12 17:24:37 +01:00
|
|
|
|
|
2017-08-09 17:38:11 +02:00
|
|
|
|
# Fix location of man-pages
|
|
|
|
|
sed "s/share\/man/man/" -i CMakeLists.txt
|
|
|
|
|
sed -i "s/DESTINATION lib/DESTINATION lib64/" CMakeLists.txt
|
2016-03-12 17:24:37 +01:00
|
|
|
|
|
2017-08-09 17:38:11 +02:00
|
|
|
|
mkdir -p build
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cd build
|
|
|
|
|
cmake \
|
2017-08-09 16:03:16 +02:00
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
2017-08-09 17:38:11 +02:00
|
|
|
|
-DUSE_CONSOLEKIT=no \
|
|
|
|
|
-DCMAKE_BUILD_TYPE=Release ..
|
|
|
|
|
make
|
|
|
|
|
make install DESTDIR=$PKG
|
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
|
|
mv $SRC/slim.conf $PKG/etc/slim.conf
|
|
|
|
|
|
|
|
|
|
mkdir -p $PKG/etc/logrotate.d
|
|
|
|
|
cat $SRC/slim.logrotate > $PKG/etc/logrotate.d/slim
|
|
|
|
|
|
|
|
|
|
# Kill the incorrectly-placed (and useless anyway) systemd stuff
|
|
|
|
|
rm -rf $PKG/usr/usr
|
|
|
|
|
# Kill systemd stuff
|
|
|
|
|
rm -rf $PKG/lib
|
|
|
|
|
|
|
|
|
|
find $PKG/usr/man -type f -exec gzip -9 {} \;
|
|
|
|
|
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
|
|
|
|
|
|
|
|
|
|
# Remove slimlock as we don't build it
|
|
|
|
|
rm $PKG/usr/man/man1/slimlock.1.gz
|
2017-08-16 01:32:13 +02:00
|
|
|
|
rm $PKG/etc/init.d/slim.init
|
|
|
|
|
rm -rf $PKG/usr/share/slim/themes/xamplar
|
|
|
|
|
rm -rf $PKG/usr/man/
|
2017-08-09 17:38:11 +02:00
|
|
|
|
|
|
|
|
|
install -d $PKG/usr/share/slim/themes/milis
|
2017-08-16 01:32:13 +02:00
|
|
|
|
cp $SRC/panel.png $PKG/usr/share/slim/themes/milis/
|
|
|
|
|
cp $SRC/milis-linux-tree.png $PKG/usr/share/slim/themes/milis/background.png
|
2017-08-09 17:38:11 +02:00
|
|
|
|
cp $SRC/slim.theme $PKG/usr/share/slim/themes/milis/
|
|
|
|
|
chmod 0644 $PKG/usr/share/slim/themes/milis/*
|
|
|
|
|
|
|
|
|
|
cd /sources/milis.git/ayarlar/servisler
|
|
|
|
|
make DESTDIR=$PKG kur-slim
|
2016-03-12 17:24:37 +01:00
|
|
|
|
}
|