-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKGBUILD
32 lines (28 loc) · 835 Bytes
/
PKGBUILD
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: freyamade <contact@freyama.de>
pkgname=crcophony-git
pkgver=0.7.0
pkgrel=1
pkgdesc='Fast, neat discord TUI written in Crystal'
arch=('x86_64')
url='https://github.com/freyamade/crcophony'
license=('MIT')
md5sums=('SKIP')
depends=('dbus' 'termbox-git')
makedepends=('git' 'crystal>=0.31.0' 'shards')
source=("$pkgname::git+https://github.com/freyamade/crcophony.git")
provides=('crcophony')
pkgver() {
cd "$pkgname"
printf "%s" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/$pkgname"
shards build crcophony --release --progress -Dpreview_mt
}
package() {
mkdir -p "$pkgdir/usr/bin/"
mkdir -p "$pkgdir/opt"
printf "#!/bin/bash\n/opt/crcophony" > "$pkgdir/usr/bin/crcophony"
chmod +x "$pkgdir/usr/bin/crcophony"
mv "$srcdir/$pkgname/bin/crcophony" "$pkgdir/opt/crcophony"
}