heptagon test

This commit is contained in:
Mylloon 2024-10-02 14:39:50 +02:00
parent 3efe65ca43
commit fe540b903a
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
4 changed files with 70 additions and 0 deletions

16
heptagon-git/.SRCINFO Normal file
View file

@ -0,0 +1,16 @@
pkgbase = heptagon-git
pkgdesc = Heptagon is a synchronous dataflow programming language
pkgver = r1220.b169c545
pkgrel = 1
url = https://gitlab.inria.fr/synchrone/heptagon
arch = x86_64
license = GPL-3.0-only
makedepends = git
makedepends = ocaml
makedepends = ocaml-findlib
provides = heptagon
conflicts = heptagon
source = git+https://gitlab.inria.fr/synchrone/heptagon.git
md5sums = SKIP
pkgname = heptagon-git

4
heptagon-git/.gitignore vendored Normal file
View file

@ -0,0 +1,4 @@
pkg
src
heptagon

12
heptagon-git/Makefile Normal file
View file

@ -0,0 +1,12 @@
.PHONY: all
all: clean build srcinfo
build:
makepkg -s
srcinfo:
makepkg --printsrcinfo > .SRCINFO
clean:
rm -rf pkg/ src/ heptagon/

38
heptagon-git/PKGBUILD Normal file
View file

@ -0,0 +1,38 @@
# Maintainer: Mylloon <kennel.anri@tutanota.com>
# shellcheck disable=SC2034,SC2148,SC2154
pkgname='heptagon-git'
pkgver=r1220.b169c545
pkgrel=1
pkgdesc="Heptagon is a synchronous dataflow programming language"
arch=('x86_64')
url=https://gitlab.inria.fr/synchrone/heptagon
license=('GPL-3.0-only')
makedepends=('git' 'ocaml' 'ocaml-findlib')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("git+https://gitlab.inria.fr/synchrone/heptagon.git")
md5sums=('SKIP')
pkgver() {
cd "$srcdir/${pkgname%-git}" || exit
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$srcdir/${pkgname%-git}" || exit
opam install -y menhir ocamlgraph camlp4
}
build() {
cd "$srcdir/${pkgname%-git}" || exit
eval "$(opam env)"
./configure
make
make install
}
package() {
cd "${srcdir}/${pkgname%-git}" || exit
}