summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: eb88934eb1662b2478f12fc4da63afe8b2edc355 (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
# Maintainer: Eliot Whalan <ewhal at pantsu dot cat>
# Contributor: Thiago Perrotta <echo dGhpYWdvcGVycm90dGE5NUBnbWFpbC5jb20K | base64 -d >
_gitname=i3session
pkgname=$_gitname-git
pkgver=2013.10.07.g0189d6c
pkgrel=1
pkgdesc="Remembers what's running in your i3 workspaces by saving a session file"
arch=('any')
url="https://github.com/joepestro/$_gitname"
license=('GPL')
depends=(python2-xdg python2-i3-git i3-wm xorg-xprop)
makedepends=('git')
source=("git://github.com/joepestro/$_gitname.git")
md5sums=('SKIP')

pkgver() {
  cd "${srcdir}/${_gitname}"
  git log -1 --format="%cd.g%h" --date=short | sed 's/-/./g'
}

package() {
  cd "$srcdir/$_gitname"
  sed -i '1 s:/python:/env python2:' "$_gitname"
  install -Dm755 $_gitname "$pkgdir/usr/bin/$_gitname"
}