summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 62701a14f561c1e52328f8edb55742b85793fdfa (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
# Maintainer: Markus Faerevaag <m@frv.ag>

pkgname=wd-git
pkgver=0.1.2.r0.g7f674f9
pkgrel=1
arch=('i686' 'x86_64')
pkgdesc="Jump to custom directories in terminal"
url="https://github.com/mfaerevaag/wd-c"
license=('MIT')

provides=('wd')
makedepends=('git')
install=$pkgname.install
source=("$pkgname"::'git+https://github.com/mfaerevaag/wd-c')
sha256sums=('SKIP')


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

build() {
    cd "$srcdir/$pkgname"
    make
}

package() {
    cd "$srcdir/$pkgname"
    make prefix="$pkgdir/usr" install
}