You are not logged in.

#1 2012-02-29 03:07:58

vwyodajl
Member
Registered: 2012-01-21
Posts: 183

Slim 1.3.3 PKGBUILD

I think I have properly made the changes for slim 1.3.3, this is my first real try at doing this so be extra harsh wink The only patch from the existing one I am not sure if was full put into the new version was session-name.patch, every other patch seems to me to have been put into 1.3.3. Is there anything I should do different, or anyone know about if session-name is still needed? It seems to be running fine as I built it. Anything else stick out to others?

Thanks for any input, hope this might help get the change going smile and apologies if I posted in the wrong area for this.

pkgname=slim
pkgver=1.3.3
pkgrel=1
pkgdesc='Desktop-independent graphical login manager for X11'
arch=('i686' 'x86_64')
url='http://slim.berlios.de/'
license=('GPL2')
depends=('cmake' 'pam' 'libxmu' 'libpng' 'libjpeg' 'libxft')
backup=('etc/slim.conf' 'etc/logrotate.d/slim' 'etc/pam.d/slim')
source=("http://slim.berlios.de/releases/${pkgname}-${pkgver}.tar.gz"
        'rc.d'
        'pam.d'
        'logrotate')
sha256sums=('c15248d99c36cb45c66298b0797246d43cd851765536746a431a1533e48dbbb9'
          '10b97e044bd5a755c6c9710171cf0a94b493eab5dd1eb1deea94cbfbf6e89550'
          '874532f69b362bdd6b7c5aa2215520b6165efd25df88cae88948b4e479093396'
          '5bf44748b5003f2332d8b268060c400120b9100d033fa9d35468670d827f6def')


build() {
	mkdir $srcdir/build
	cd $srcdir/build
	cmake ../${pkgbase}-${pkgver} \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DUSE_CONSOLEKIT=yes \
		-DUSE_PAM=yes

	make
}

package() {
	cd ${srcdir}/build

	make DESTDIR="${pkgdir}" MANDIR=/usr/share/man install

	install -D -m755 ../rc.d "${pkgdir}"/etc/rc.d/slim
	install -D -m644 ../pam.d "${pkgdir}"/etc/pam.d/slim
	install -D -m644 ../logrotate "${pkgdir}"/etc/logrotate.d/slim

	# Provide sane defaults
	sed -i 's|#xserver_arguments.*|xserver_arguments -nolisten tcp vt07|' "${pkgdir}"/etc/slim.conf
	sed -i 's|/var/run/slim.lock|/var/lock/slim.lock|' "${pkgdir}"/etc/slim.conf
}

edit: got rid of the bad link to PKGBUILD, swanson's may be better but this has been working OK on my test machine for bit now. Though have not really dug in to see if I set things up correctly 100%

Last edited by vwyodajl (2012-04-09 03:45:59)

Offline

#2 2012-04-08 03:56:27

pluto9
Member
Registered: 2012-04-08
Posts: 3

Re: Slim 1.3.3 PKGBUILD

Finally, it supports console-kit properly according to the release note. Will this be update to the official repository?

Offline

#3 2012-04-08 06:24:23

swanson
Member
From: Sweden
Registered: 2011-02-05
Posts: 759

Re: Slim 1.3.3 PKGBUILD

I've been using slim 1.3.3 from svn a couple of weeks now and it's great! I will test your pkgbuild later today cause I'm really glad slim isn't dead. Been on a round trip from lxdm to ligthdm and back to slim again.

Offline

#4 2012-04-08 07:29:52

swanson
Member
From: Sweden
Registered: 2011-02-05
Posts: 759

Re: Slim 1.3.3 PKGBUILD

Ooops! "Unknown Paste ID!" in your link!

Can't find it by searching pastebin either.

Last edited by swanson (2012-04-08 07:34:33)

Offline

#5 2012-04-08 08:59:53

swanson
Member
From: Sweden
Registered: 2011-02-05
Posts: 759

Re: Slim 1.3.3 PKGBUILD

Made my own PKGBUILD based on slim-plus without most of those patches but with adjustment for new cmake command. Commented out "Provide sane defaults", temporary for safety (?). Please test and comment!!!!

# $Id$
# Contributor: lh <jarryson#gmail.com>
# New version 1.3.3 20120408 by swanson

pkgname=slim
_realname=slim
pkgver=1.3.3
pkgrel=1
pkgdesc="Patched and improved slim."
arch=(i686 x86_64)
url="http://slim.berlios.de"
backup=(etc/slim.conf)
depends=('libxmu' 'libxft' 'libjpeg>=7' 'libpng>=1.4')
provides=(slim)
conflicts=(slim)
install=slim.install
license=('GPL2')
source=(http://download.berlios.de/$_realname/$_realname-$pkgver.tar.gz
        slim
	slim.logrotate
	Xsession.sh
        )
md5sums=('ce53e44c1e4a2eacf5bb7688ee2a5de8'
         'e3ae7e53a8049d84cb11f5ac299e6552'
	'43da096480bf72c3ccec8ad8400f34f0'
	'fab2e983184bf82af0a3982b52310312'
        )

build() {
  cd $startdir/src/$_realname-$pkgver
  
  
  cmake -DUSE_CONSOLEKIT=yes -DCMAKE_INSTALL_PREFIX=/usr || return 1
  make || return 1
  make DESTDIR="$pkgdir" MANDIR=/usr/share/man install || return 1

  install -Dm755 "$srcdir/slim" "$pkgdir/etc/rc.d/slim" || return 1
  install -Dm644 "$srcdir/slim.logrotate" "$pkgdir/etc/logrotate.d/slim" || return 1
  
  install -Dm644 $srcdir/Xsession.sh $pkgdir/etc/X11/Xsession || return 1

  # Provide sane defaults
#  sed -i 's|#xserver_arguments.*|xserver_arguments   -nolisten tcp vt07|' \
 #   "$pkgdir/etc/slim.conf" || return 1
 # sed -i 's|/var/run/slim.lock|/var/lock/slim.lock|' "$pkgdir/etc/slim.conf" || return 1
 # sed -i 's|-login ~/.xinitrc|-login /etc/X11/Xsession|g' "$pkgdir/etc/slim.conf" || return 1
}

Hmm, the new cmake options does not seem to work!

Last edited by swanson (2012-04-08 09:12:28)

Offline

Board footer

Powered by FluxBB