summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f4f447f428f640467caf495d641aec479e912daa (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
# Maintainer: Jonathon Fernyhough <jonathon_at m2x dot dev>
# Contributor: John Trengrove
# Contributor: Alexander Rødseth <rodseth@gmail.com>

pkgname=tcc-git
pkgver=0.9.27.r797.g4e0e9b8
pkgrel=1
pkgdesc='Tiny C Compiler'
arch=('x86_64' 'i686')
url='https://bellard.org/tcc/'
license=('LGPL2.1')
makedepends=('texi2html' 'git')
provides=('tcc')
conflicts=('tcc')
options=('staticlibs' '!lto')
source=('git+https://repo.or.cz/tinycc.git')
md5sums=('SKIP')

pkgver() {
  cd tinycc
  git describe --tags --long | sed 's/^release_//; s/_/./g; s/-/.r/; s/-/./'
}

build() {
  cd tinycc
  ./configure --prefix=/usr
  make
}

check() {
  cd tinycc
  make -j1 test
}

package() {
  make -C tinycc DESTDIR="$pkgdir" docdir="$pkgdir"/usr/share/doc/tcc install
}

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