summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8d5f479cb932316b54aa3471efe75e82d4bfcc24 (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
# Contributor: Anatol Pomozov anatol dot pomozov at g mail

pkgname=v7
pkgver=3.0
pkgrel=1
pkgdesc='Simple and fast JavaScript engine written in C'
arch=(i686 x86_64)
license=(GPL2)
depends=(glibc)
url='https://github.com/cesanta/v7'
source=(v7-$pkgver.tar.gz::https://github.com/cesanta/v7/archive/$pkgver.tar.gz)
sha1sums=('a0457ee409486e0e14516ddf85fb51ea6d56b9de')

build() {
  cd v7-$pkgver
  CFLAGS_EXTRA="$CFLAGS" make v7
}

check() {
  cd v7-$pkgver
  make test
}

package() {
  cd v7-$pkgver
  install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  install -D -m755 v7 "$pkgdir/usr/bin/v7"
  #install -D -m755 v7.so "$pkgdir/usr/lib/libv7.so"
  install -D -m644 v7.h "$pkgdir/usr/include/v7.h"
}