summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b56bf6a92412a9acbb83eafb9fb7fe163478a017 (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
# Maintainer: Haotian Li <lilinzta@gmail.com>
pkgname=tui-datepicker-git
_gitname=${pkgname%-git}
pkgdesc="select date in terminal with vim-motions and copy to buffer"
pkgver=20250102.3b85c3a
pkgrel=1
arch=('x86_64' 'i686' 'armv6h' 'armv7h' 'aarch64')
url="https://github.com/maraloon/tui-datepicker"
license=("unknown")
makedepends=("go")
source=("git+${url}.git")
sha256sums=("SKIP")

pkgver() {
    cd ${_gitname}
    printf "%s.%s" "$(git show -s --format=%cs | tr -d -)" "$(git rev-parse --short HEAD)"
}

build() {
    cd ${_gitname}
    go build -trimpath -ldflags "-s -w"
}

package() {
    install -Dm755 ${srcdir}/${_gitname}/${_gitname} ${pkgdir}/usr/bin/${_gitname}
}