summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d632ccf796039ce8e12286731e247cd553d84a0f (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: Andy Weidenbaum <archbaum@gmail.com>

pkgname=c2nim
pkgver=0.9.8
pkgrel=2
pkgdesc="Tool to translate Ansi C code to Nim"
arch=('i686' 'x86_64')
depends=('nim')
makedepends=('git' 'nimble')
groups=('nim')
url="https://github.com/nim-lang/c2nim"
license=('MIT')
source=($pkgname-$pkgver::git+https://github.com/nim-lang/c2nim)
sha256sums=('SKIP')

build() {
  cd "$srcdir/$pkgname-$pkgver"

  msg2 'Building...'
  nimble build -y
}

package() {
  cd "$srcdir/$pkgname-$pkgver"

  msg2 'Installing documentation...'
  install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname"

  msg2 'Installing...'
  install -Dm 755 c2nim -t "$pkgdir/usr/bin"
}