# Maintainer: Ron B.S pkgname=6cord # https://gitlab.com/diamondburned/6cord/releases pkgver=9.6 pkgrel=1 pkgdesc='Discord, TUI and SIXEL.' arch=('x86_64') url="https://gitlab.com/diamondburned/6cord" license=('MPL-2.0') makedepends=('go' 'git') source=("https://gitlab.com/diamondburned/6cord/-/archive/stable-$pkgver/6cord-stable-$pkgver.tar.gz") sha256sums=('5716968065d882b1537878e9fcaa035f61bc9b0d36cbdac3eff97fe90b4c6d52') conflicts=('6cord-git') build() { cd $pkgname-stable-$pkgver go build \ -gcflags "all=-trimpath=$PWD" \ -asmflags "all=-trimpath=$PWD" \ -ldflags "-extldflags $LDFLAGS" \ -o $pkgname . } package() { cd $pkgname-stable-$pkgver install -Dm755 $pkgname "$pkgdir"/usr/bin/6cord }