summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c9f0532359630ae6da6dbf0beb8c5182868e5b01 (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: ewhal4 <ewhal4 at live dot com>
# 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"
}