summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 12666e3e00cf7c46659b1c2c1a00f0edddb5f5d3 (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
33
34
35
36
37
38
# Maintainer: Leon Möller <jkhsjdhjs at totally dot rip>

pkgname=voirc-git
pkgver=r5.be94145
pkgrel=1
pkgdesc="Prototype implementation of basic voice chat over IRC text messages"
arch=('any')
url="https://github.com/asiekierka/voirc"
license=('MIT')
makedepends=('git' 'nim')
depends=('libsoundio' 'codec2')
source=(
    "${pkgname%-git}::git+https://github.com/asiekierka/voirc"
    "https://raw.githubusercontent.com/nim-lang/irc/master/src/irc.nim"
    "https://raw.githubusercontent.com/ul/soundio/master/src/soundio.nim"
)
sha512sums=('SKIP' 'SKIP' 'SKIP')

pkgver() {
  cd "$srcdir/${pkgname%-git}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  cd "$srcdir"
  cp {irc,soundio}.nim "${pkgname%-git}/lib/"
}

build() {
  cd "$srcdir/${pkgname%-git}"
  make
}

package() {
  cd "$srcdir/${pkgname%-git}"
  install -Dm755 voirc "$pkgdir/usr/bin/voirc"
}