summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 957a945c708b4f92f95f0121a1bbcbc4271e6939 (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
# Maintainer: Alexander F Rødseth <xyproto@archlinux.org>

pkgname=c2go-git
pkgver=0.1.r11.gde9c496
pkgrel=1
pkgdesc='C to Go conversion helper'
arch=('any')
url='http://github.com/xyproto/c2go'
license=('BSD')
depends=('python-pycparser')
source=('c2go::git://github.com/xyproto/c2go')
md5sums=('SKIP')

pkgver() {
  cd "${pkgname%-git}"

  git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
}

package() {
  cd "${pkgname%-git}"

  install -Dm755 c2go.py "$pkgdir/usr/bin/c2go"
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

# vim:set ts=2 sw=2 et: