summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: db79b6c52038963ecc75dcc108d508fbb26266d8 (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
# Maintainer: Siddhant Madhur <siddhant.madhur@gmail.com>
pkgname=straw
pkgver=v0.1.alpha4
pkgrel=1
pkgdesc="CLI tool to easily go-to projects all over your desktop and open a new tmux session in it"
arch=(x86_64)
url="https://github.com/siddhantmadhur/straw"
license=(MIT)
makedepends=(git go)
provides=(straw)
source=("straw::git+https://github.com/siddhantmadhur/straw.git")
sha256sums=(SKIP)

pkgver () {
    cd straw
    git describe --tags --abbrev=0
}


build() {
    cd straw
    go build -ldflags="-X 'main.version=${pkgver}'" -o straw 
}

package() {
    cd straw
    install -Dm755 straw -t "${pkgdir}/usr/bin" 
}