summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: eb2b429bc64b6cea2c11f7eb187bd5e1a58befb5 (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
39
40
41
42
43
44
45
46
47
48
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=colm-git
pkgver=0.14.7.r44.g28b6e0a0
pkgrel=4
pkgdesc="A programming language designed for the analysis and transformation of computer languages"
arch=('i686' 'x86_64')
url="https://www.colm.net/open-source/colm/"
license=('MIT')
depends=('gcc-libs')
makedepends=('git' 'asciidoc' 'fig2dev')
provides=("colm=$pkgver")
conflicts=('colm')
options=('staticlibs')
source=("git+https://github.com/adrian-thurston/colm.git")
sha256sums=('SKIP')


pkgver() {
  cd "colm"

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

build() {
  cd "colm"

  ./autogen.sh
  CFLAGS="$CFLAGS -ffat-lto-objects" \
  CXXFLAGS="$CXXFLAGS -ffat-lto-objects" \
  ./configure \
    --prefix="/usr"
  make
}

check() {
  cd "colm"

  #make check
}

package() {
  cd "colm"

  make DESTDIR="$pkgdir" install
  install -Dm644 "colm.vim" -t "$pkgdir/usr/share/vim/vimfiles/syntax"
  install -Dm644 "COPYING" -t "$pkgdir/usr/share/licenses/colm"
}