summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5067ef0433eb8c0c42ffed1883359a75d7c83191 (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=20190309
pkgrel=2
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="https://github.com/schischi/xcwd.git"
source=('git+https://github.com/schischi/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
}