summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorWorMzy Tykashi2015-06-12 22:49:46 +0100
committerWorMzy Tykashi2015-06-12 22:49:46 +0100
commit7a8d00934b0be391bd5ff862099566083a64d28c (patch)
treedfa05250c76860d3fce64bcfaeaaf5ca788310fa
downloadaur-7a8d00934b0be391bd5ff862099566083a64d28c.tar.gz
Copied from non-git
-rw-r--r--.SRCINFO32
-rw-r--r--PKGBUILD64
-rw-r--r--slim-1.3.6-fix-libslim-libraries.patch20
-rw-r--r--slim.conf13
-rw-r--r--slimlock.install10
5 files changed, 139 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..5675ef94bfd
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,32 @@
+pkgbase = slimlock
+ pkgdesc = Unholy screen locker (without SLiM)
+ pkgver = 1.3.6
+ pkgrel = 1
+ url = http://slim.berlios.de/
+ install = slimlock.install
+ arch = i686
+ arch = x86_64
+ license = GPL2
+ makedepends = cmake
+ makedepends = libxmu
+ depends = libxft
+ depends = pam
+ depends = libxrandr
+ depends = libpng
+ depends = libjpeg
+ conflicts = slimlock-git
+ conflicts = slim>=1.3.6
+ backup = etc/slimlock.conf
+ source = http://downloads.sourceforge.net/project/slim.berlios/slim-1.3.6.tar.gz
+ source = slimlock.install
+ source = slim.conf
+ source = http://downloads.sourceforge.net/project/slim.berlios/slim-archlinux-simple.tar.gz
+ source = slim-1.3.6-fix-libslim-libraries.patch
+ sha1sums = 9407ea2ee7b2ed649f17a8ddbf1f7b26a7c7b9fb
+ sha1sums = 16c89da06114d71df10ef63aa50745a73ec1852c
+ sha1sums = e44f369bea03b3f9bbccc18240af51f1bd06e0da
+ sha1sums = 4bc79f730d398f748f8bbd0fbb365bec7ec524e9
+ sha1sums = bc77f03262d0bf423210aaf418d2452324b732ec
+
+pkgname = slimlock
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..8ecf5d06488
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,64 @@
+# Maintainer: WorMzy Tykashi <wormzy.tykashi@gmail.com>
+# Contributor: Diego <cdprincipe@gmail.com>
+# Contributor: Joel Burget <joelburget@gmail.com>
+
+pkgname=slimlock
+_basename=slim
+pkgver=1.3.6
+pkgrel=1
+pkgdesc="Unholy screen locker (without SLiM)"
+arch=('i686' 'x86_64')
+url="http://slim.berlios.de/"
+license=('GPL2')
+depends=('libxft' 'pam' 'libxrandr' 'libpng' 'libjpeg')
+makedepends=('cmake' 'libxmu')
+conflicts=('slimlock-git' 'slim>=1.3.6')
+backup=('etc/slimlock.conf')
+install='slimlock.install'
+source=('http://downloads.sourceforge.net/project/slim.berlios/slim-1.3.6.tar.gz'
+ 'slimlock.install'
+ 'slim.conf'
+ 'http://downloads.sourceforge.net/project/slim.berlios/slim-archlinux-simple.tar.gz'
+ 'slim-1.3.6-fix-libslim-libraries.patch')
+sha1sums=('9407ea2ee7b2ed649f17a8ddbf1f7b26a7c7b9fb'
+ '16c89da06114d71df10ef63aa50745a73ec1852c'
+ 'e44f369bea03b3f9bbccc18240af51f1bd06e0da'
+ '4bc79f730d398f748f8bbd0fbb365bec7ec524e9'
+ 'bc77f03262d0bf423210aaf418d2452324b732ec')
+
+prepare() {
+ cd "$_basename-$pkgver"
+ patch -Np1 -i "$srcdir/slim-1.3.6-fix-libslim-libraries.patch"
+}
+
+build() {
+ cd "$_basename-$pkgver"
+ cmake -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_SKIP_RPATH=ON \
+ -DUSE_PAM=yes \
+ -DUSE_CONSOLEKIT=no \
+ -DBUILD_SHARED_LIBS=no
+ make
+}
+
+package() {
+ cd "$_basename-$pkgver"
+ install -Dm755 slimlock "$pkgdir/usr/bin/slimlock"
+ install -Dm644 slimlock.conf "$pkgdir/etc/slimlock.conf"
+ install -Dm644 slimlock.1 "$pkgdir/usr/share/man/man1/slimlock.1"
+
+ install -D -m644 "$srcdir/slim.conf" "$pkgdir/usr/share/slimlock/example-slim.conf"
+
+ cd "$srcdir/slim-archlinux-simple"
+
+ install -D -m644 slim.theme \
+ "$pkgdir/usr/share/slim/themes/slim-archlinux-default/slim.theme"
+ install -D -m644 background.png \
+ "$pkgdir/usr/share/slim/themes/slim-archlinux-default/background.png"
+ install -D -m644 panel.png \
+ "$pkgdir/usr/share/slim/themes/slim-archlinux-default/panel.png"
+ install -D -m644 preview.png \
+ "$pkgdir/usr/share/slim/themes/slim-archlinux-default/preview.png"
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/slim-1.3.6-fix-libslim-libraries.patch b/slim-1.3.6-fix-libslim-libraries.patch
new file mode 100644
index 00000000000..b6c90f9f46e
--- /dev/null
+++ b/slim-1.3.6-fix-libslim-libraries.patch
@@ -0,0 +1,20 @@
+diff -upr slim-1.3.6.orig/CMakeLists.txt slim-1.3.6/CMakeLists.txt
+--- slim-1.3.6.orig/CMakeLists.txt 2013-10-02 16:16:22.000000000 +0300
++++ slim-1.3.6/CMakeLists.txt 2013-10-02 16:19:57.000000000 +0300
+@@ -119,6 +119,7 @@ if(USE_PAM)
+ if(PAM_FOUND)
+ message("\tPAM Found")
+ set(SLIM_DEFINITIONS ${SLIM_DEFINITIONS} "-DUSE_PAM")
++ target_link_libraries(libslim ${PAM_LIBRARY})
+ target_link_libraries(${PROJECT_NAME} ${PAM_LIBRARY})
+ target_link_libraries(slimlock ${PAM_LIBRARY})
+ include_directories(${PAM_INCLUDE_DIR})
+@@ -178,6 +179,8 @@ include_directories(
+ )
+
+ target_link_libraries(libslim
++ ${X11_Xft_LIB}
++ ${X11_Xrandr_LIB}
+ ${JPEG_LIBRARIES}
+ ${PNG_LIBRARIES}
+ )
diff --git a/slim.conf b/slim.conf
new file mode 100644
index 00000000000..a01e65b8981
--- /dev/null
+++ b/slim.conf
@@ -0,0 +1,13 @@
+# Hide the mouse cursor (note: does not work with some WMs).
+# Valid values: true|false
+hidecursor false
+
+# Executed when pressing F11 (requires imagemagick)
+screenshot_cmd import -window root /slimlock.png
+
+# welcome message. Available variables: %host, %domain
+welcome_msg Welcome to %host.%domain
+
+# current theme, use comma separated list to specify a set to
+# randomly choose from
+current_theme slim-archlinux-default
diff --git a/slimlock.install b/slimlock.install
new file mode 100644
index 00000000000..e5e99c1b96e
--- /dev/null
+++ b/slimlock.install
@@ -0,0 +1,10 @@
+post_install() {
+ cat <<EOF
+---------------------------------------------------------------
+If you wish to use slimlock without having slim installed, copy
+/usr/share/slimlock/example-slim.conf to /etc/slim.conf then
+edit /etc/slim.conf to use the theme you want slimlock to use
+(plenty are available in the AUR)
+---------------------------------------------------------------
+EOF
+}