summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 20cca31c25ba0c9599f80e3d91bb4c1c95d43cb4 (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
33
34
35
36
37
38
39
40
41
# Contributor:  Lucas de Vries <lucasdevries@gmail.com>
# Contributer:  Quan Guo <guotsuan@gmail.com>
arch=(i686 x86_64)
pkgname=eminent-git
pkgver=2016.06.15.g42ee276
pkgrel=1
pkgdesc="Effortless wmii-style dynamic tagging for the awesome window manager version 3.5 or later, second iteration"
license=('GPL')
url="https://github.com/guotsuan/eminent"

depends=('awesome')
makedepends=('git')
conflicts=('eminent')
provides=('eminent')

#_gitroot=git://github.com/guotsuan/eminent.git
_gitname=eminent

source=("git://github.com/guotsuan/eminent.git")
md5sums=('SKIP')

pkgver() {
    #cd $_gitname
    #echo $(git rev-list --count master).$(git rev-parse --short master)


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


build() {
  cd $_gitname
  luac -o eminent.luac eminent.lua
}

package() {
  cd $_gitname
  install -D -m644 eminent.lua ${pkgdir}/usr/share/awesome/lib/eminent.lua
  install -D -m644 eminent.luac ${pkgdir}/usr/share/awesome/lib/eminent.luac
}