summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 785bfeb923ccc8e9578612f1c0cdfc9230ec0aca (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
# Maintainer: Robin Broda <robin at broda dot me>

_pkgname="streem"
pkgname=("${_pkgname}-git")
pkgver=r942.4d79ff2
pkgrel=1
pkgdesc='prototype of stream based programming language'
arch=('x86_64')
url='https://github.com/matz/streem'
license=('MIT')
provides=('streem')
conflicts=('streem')
depends=('glibc')
makedepends=('git')
source=('git+https://github.com/matz/streem.git')
md5sums=('SKIP')

pkgver() {
  cd "${_pkgname}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "${_pkgname}"

  make
}

check() {
  cd "${_pkgname}"

  make test
}

package() {
  cd "${_pkgname}"

  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  install -Dm755 bin/streem "${pkgdir}/usr/bin/streem"

  cd examples
  find . -type f -exec install -Dm644 "{}" "${pkgdir}/usr/share/doc/${_pkgname}/examples/{}" \;
}