summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e141eeef824b0121b4fa34576e9c07f5ce2829f2 (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: Marcel Schramm <marcelschr@protonmail.com>

pkgname=cordless-git
pkgver=2020.06.26
pkgrel=1
pkgdesc='A Discord TUI client.'
arch=('x86_64')
url="https://github.com/Bios-Marcel/cordless"
license=('BSD-3')
source=("$pkgname::git+https://github.com/Bios-Marcel/cordless.git")
makedepends=('glibc' 'go')
md5sums=('SKIP')

pkgver() {
    cd "$pkgname"
    git describe --tags `git rev-list --tags --max-count=1` | sed 's/-/./g'
}

build() {
  cd "$pkgname"
  go build \
    -gcflags "all=-trimpath=$PWD" \
    -asmflags "all=-trimpath=$PWD" \
    -ldflags "-extldflags $LDFLAGS" \
    -o $pkgname .
}

package() {
  cd $pkgname
  install -Dm755 $pkgname "$pkgdir"/usr/bin/cordless
}