summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 34cbc0b82b194055cde56c01358930de68f1048b (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: Ron B.S <ronthecookie0101 on gmail --OR-- me AT ronthecookie DOT me >

pkgname=6cord-git
pkgver=5.r12.ge5b64ec
pkgrel=1
pkgdesc='Discord, TUI and SIXEL.'
arch=('x86_64')
url="https://gitlab.com/diamondburned/6cord"
license=('MPL-2.0')
makedepends=('go' 'git')
source=("$pkgname::git+https://gitlab.com/diamondburned/6cord.git")
md5sums=('SKIP')
conflicts=('6cord')

pkgver() {
    cd "$pkgname"
    git describe --long | sed 's/^stable.//;s/\([^-]*-g\)/r\1/;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/6cord
}