summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b6d33a9cec443438759d254f57497251422f6ca6 (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
# Maintainer: Sebastian Reuße <seb@wirrsal.net>
pkgname=extendp-git
_gitname=extendp
pkgver=r17.235677e
pkgrel=1
pkgdesc="A wildcard command for shell pipelines."
arch=(i686 x86_64)
url="https://github.com/jkarni/extendp"
license=(unknown)
source=(git+https://github.com/jkarni/extendp)
depends=(glib2)
provides=(extendp)
conflicts=(extendp)
makedepends=(git)
md5sums=(SKIP)
install=extendp.install

pkgver() {
  cd "$_gitname"
  commit=$(git rev-list --count master)
  hash=$(git rev-parse --short HEAD)
  echo "r$commit.$hash"
}

build() {
  cd "$_gitname"
  make
}

package() {
  cd "$_gitname"
  echo $pkgdir
  install -Dm 755 xp "$pkgdir"/usr/bin/xp
  install -Dm 644 xp.1 "$pkgdir"/usr/share/man/man1/xp.1
  install -Dm 644 extendp.cfg "$pkgdir"/usr/share/extendp/extendp.cfg
}