summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9e61ba0eecbbee9984423f92d5700af33b218a8c (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
# Maintainer: Sebastian Reuße <seb@wirrsal.net>
pkgname=pit-git
_gitname=pit
pkgver=0.1.0.r9.g4d20557
pkgrel=1
pkgdesc="A command-line project manager that integrates with Git."
arch=(i686 x86_64)
url="https://github.com/michaeldv/pit"
license=(custom:BSD)
provides=(pit)
conflicts=(pit)
makedepends=(git)
depends=(glibc)
source=(git+https://github.com/michaeldv/pit)
md5sums=(SKIP)

pkgver() {
    cd "$_gitname"
    git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "$_gitname"
  make
}

package() {
  cd "$_gitname"
  mkdir -p "$pkgdir"/usr/bin
  make PREFIX="$pkgdir/usr" install
  install -D LICENSE "$pkgdir"/usr/share/licenses/pit-git/LICENSE
}