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
|
|
|
|
|
version=1.3.6
|
2017-08-09 16:03:16 +02:00
|
|
|
|
release=4
|
2017-06-06 04:41:29 +02:00
|
|
|
|
source=(http://downloads.sourceforge.net/project/slim.berlios/slim-$version.tar.gz
|
|
|
|
|
background.jpg
|
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 16:03:16 +02:00
|
|
|
|
slim-1.3.6-fix-libslim-libraries.patch
|
|
|
|
|
slim-1.3.6-add-sessiondir.patch
|
|
|
|
|
slim.pam
|
|
|
|
|
slim.logrotate
|
2017-06-06 04:41:29 +02:00
|
|
|
|
slim.theme)
|
2016-03-12 17:24:37 +01:00
|
|
|
|
|
|
|
|
|
build () {
|
2017-06-06 04:41:29 +02:00
|
|
|
|
cd $name-$version
|
2016-03-12 17:24:37 +01:00
|
|
|
|
|
2017-08-09 16:03:16 +02:00
|
|
|
|
sed -i 's|set(LIBDIR "/lib")|set(LIBDIR "/usr/lib")|' CMakeLists.txt
|
2016-03-12 17:24:37 +01:00
|
|
|
|
|
2017-08-09 16:03:16 +02:00
|
|
|
|
patch -Np1 -i ../slim-1.3.6-fix-libslim-libraries.patch
|
|
|
|
|
patch -Np1 -i ../slim-1.3.6-add-sessiondir.patch
|
2016-03-12 17:24:37 +01:00
|
|
|
|
|
2017-08-09 16:03:16 +02:00
|
|
|
|
cmake \
|
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
|
-DCMAKE_SKIP_RPATH=ON \
|
|
|
|
|
-DUSE_PAM=yes \
|
|
|
|
|
-DUSE_CONSOLEKIT=no
|
|
|
|
|
|
|
|
|
|
make
|
2017-06-06 04:41:29 +02:00
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
mkdir $PKG/etc/rc.d/
|
|
|
|
|
mkdir $PKG/etc/rc.d/init.d
|
|
|
|
|
cp $SRC/slim.conf $PKG/etc/
|
|
|
|
|
cd ../
|
2016-03-12 17:24:37 +01:00
|
|
|
|
|
2017-06-06 04:41:29 +02:00
|
|
|
|
install -d $PKG/usr/share/slim/themes/milis
|
|
|
|
|
cp $SRC/background.jpg $PKG/usr/share/slim/themes/milis/
|
2017-06-06 04:46:23 +02:00
|
|
|
|
cp $SRC/milis-linux-tree.png $PKG/usr/share/slim/themes/milis/panel.png
|
2017-06-06 04:41:29 +02:00
|
|
|
|
cp $SRC/slim.theme $PKG/usr/share/slim/themes/milis/
|
|
|
|
|
chmod 0644 $PKG/usr/share/slim/themes/milis/*
|
2017-08-09 16:03:16 +02:00
|
|
|
|
|
|
|
|
|
install -Dm644 "$SRC/slim.pam" "$PKG/etc/pam.d/slim"
|
|
|
|
|
install -Dm644 "$SRC/slim.logrotate" "$PKG/etc/logrotate.d/slim"
|
|
|
|
|
install -Dm644 $SRC/$name-$version/slimlock.conf "$PKG/etc/slimlock.conf"
|
|
|
|
|
|
2017-06-06 04:41:29 +02:00
|
|
|
|
# Systemd desteği yok
|
2017-08-09 16:03:16 +02:00
|
|
|
|
rm -r $PKG/usr/lib/systemd $PKG/usr/share/man
|
2017-06-06 04:41:29 +02:00
|
|
|
|
|
|
|
|
|
cd /sources/milis.git/ayarlar/servisler
|
|
|
|
|
make DESTDIR=$PKG kur-slim
|
2017-08-09 16:03:16 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sed -i -e 's|#xserver_arguments.*|xserver_arguments -nolisten tcp vt07|' -e 's|/var/run/slim.lock|/var/lock/slim.lock|' "$PKG/etc/slim.conf"
|
2016-03-12 17:24:37 +01:00
|
|
|
|
}
|