summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 02aec605c9c7502aaa3e22700848438cd49710e8 (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
# Maintainer: Alad Wenter <alad@mailbox.org>
# Contributor: Tomáš Mládek <tmladek @ inventati doth ork>
# Contributor: shuall <shualloret @ gmail . com>

pkgname=chaiscript
pkgver=6.1.0
pkgrel=1
pkgdesc="embedded scripting language which targets C++"
arch=('x86_64')
url="http://www.chaiscript.com"
license=('BSD')
depends=('readline')
makedepends=('cmake')
source=("$pkgname-$pkgver.tar.gz::https://github.com/Chaiscript/Chaiscript/archive/v$pkgver.tar.gz")
sha256sums=('3ca9ba6434b4f0123b5ab56433e3383b01244d9666c85c06cc116d7c41e8f92a')

build() {
  cd "ChaiScript-$pkgver"

  cmake -DCMAKE_INSTALL_PREFIX=/usr ./
  make
}

package() {
  cd "ChaiScript-$pkgver"

  make DESTDIR="$pkgdir" install
  install -Dm644 license.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}