summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 77df373d351527bc3349612b063606a3f608cc34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Maintainer: Jordyn Carattini <onlinecloud1@gmail.com>
pkgname="shsession-git"
pkgver=20161025
pkgrel=1
pkgdesc="A lightweight session manager written in bash."
url="https://github.com/jcjordyn130/shsession"
license=('GPL3')
source=("git://github.com/jcjordyn130/shsession.git")
sha512sums=('SKIP')
arch=('any')
depends=('bash' 'coreutils')
makedepends=('git')
optdepends=('pygtk: for the gui session controller'
	    'python: for the gui session controller'
	    'pm-utils: for the default suspend and hibernate commands'
            'systemd: for the default poweroff and reboot commaands')

pkgver() {
  # Update the pkgver to the date makepkg was run
  echo $(date +%Y%m%d)
}

package() {
  # Make the usr and usr/bin directories in the package
  mkdir -p ${pkgdir}/usr/bin
  # Copy shsession into the package
  cp -v ${srcdir}/shsession/shsession ${pkgdir}/usr/bin/shsession
  mkdir -p ${pkgdir}/usr/share/shsession
  cp -rv ${srcdir}/shsession/sessions ${pkgdir}/usr/share/shsession/
  cp -rv ${srcdir}/shsession/sessionctl-gui/* ${pkgdir}/usr/bin/
  cp -rv ${srcdir}/shsession/sessionctl-cli/* ${pkgdir}/usr/bin/
}