summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 424aa23424dbf893b84db4f7263206566c5a7898 (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
# Maintainer: Kevin Houdebert <kevin@qwazerty.eu>
# Contributor: Franck Michea <franck.michea@gmail.com>
# Submitter: Stefan Husmann <stefan-husmann@t-online.de>
# Contributor: _@killown.com

pkgname=xcwd-git
pkgver=20141221
pkgrel=1
pkgdesc="xcwd is a simple tool that prints the current working directory of the currently focused window."
arch=('i686' 'x86_64')
license=('BSD')
depends=('libx11')
makedepends=('git')
url="http://github.com/schischi-a/xcwd.git"
source=('git://github.com/schischi-a/xcwd')
md5sums=('SKIP')
_gitname="xcwd"

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

build() {
  cd $srcdir/$_gitname
  make prefix=/usr
}

package() {
  cd $srcdir/$_gitname
  install -Dm0755 $_gitname $pkgdir/usr/bin/$_gitname
  install -Dm644 LICENSE $pkgdir/usr/share/licenses/$_gitname/LICENSE
}