#Packager: George Vlahavas pkgname=slapt-update-service pkgver=0.5.0b pkgrel=4gv source=("http://software.jaos.org/source/slapt-update-service/slapt-update-service-$pkgver.tar.gz" "slapt-update-notifier-starter" "slapt-update-service.desktop" "su-2h.patch" "slapt-get-update" "slapt-update-service-su") url=http://software.jaos.org docs=("readme" "install" "copying" "changelog" "authors" "news" "todo") options=('nosrcpack' 'noautodotnew') slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "slapt-update-service (Service which notifies about package updates)" "slapt-update-service is a DBus service which notifies about package" "updates. It places an icon in the user's notification area when" "package updates are available." ) build() { cd $startdir/src/$pkgname-$pkgver # patch for using a wrapper script which launches one of # gksu/ktsuss/kdesu, depending which one is installed, instead of having # it hardcoded. # Also check every 2h for updates instead of 4. patch -p1 < $startdir/src/su-2h.patch # install a cron job for running slapt-get --update mkdir -p $startdir/pkg/etc/cron.hourly cp $startdir/src/slapt-get-update $startdir/pkg/etc/cron.hourly chmod 755 $startdir/pkg/etc/cron.hourly/slapt-get-update # install custom su mkdir -p $startdir/pkg/usr/libexec cp $startdir/src/slapt-update-service-su $startdir/pkg/usr/libexec/ chmod 755 $startdir/pkg/usr/libexec/slapt-update-service-su # start the notifier when session starts mkdir -p $startdir/pkg/etc/xdg/autostart cp $startdir/src/slapt-update-service.desktop $startdir/pkg/etc/xdg/autostart mkdir -p $startdir/pkg/usr/bin cp $startdir/src/slapt-update-notifier-starter $startdir/pkg/usr/bin/ chmod 755 $startdir/pkg/usr/bin/slapt-update-notifier-starter ./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --sysconfdir=/etc --build=$arch-slackware-linux make || return 1 make install DESTDIR=$startdir/pkg }