From fe540b903a5d97c9490eb8ffa0248d4224e1c751 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Wed, 2 Oct 2024 14:39:50 +0200 Subject: [PATCH] heptagon test --- heptagon-git/.SRCINFO | 16 ++++++++++++++++ heptagon-git/.gitignore | 4 ++++ heptagon-git/Makefile | 12 ++++++++++++ heptagon-git/PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 70 insertions(+) create mode 100644 heptagon-git/.SRCINFO create mode 100644 heptagon-git/.gitignore create mode 100644 heptagon-git/Makefile create mode 100644 heptagon-git/PKGBUILD diff --git a/heptagon-git/.SRCINFO b/heptagon-git/.SRCINFO new file mode 100644 index 0000000..594b1ee --- /dev/null +++ b/heptagon-git/.SRCINFO @@ -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 diff --git a/heptagon-git/.gitignore b/heptagon-git/.gitignore new file mode 100644 index 0000000..08344ed --- /dev/null +++ b/heptagon-git/.gitignore @@ -0,0 +1,4 @@ +pkg +src + +heptagon diff --git a/heptagon-git/Makefile b/heptagon-git/Makefile new file mode 100644 index 0000000..c4f482b --- /dev/null +++ b/heptagon-git/Makefile @@ -0,0 +1,12 @@ +.PHONY: all + +all: clean build srcinfo + +build: + makepkg -s + +srcinfo: + makepkg --printsrcinfo > .SRCINFO + +clean: + rm -rf pkg/ src/ heptagon/ diff --git a/heptagon-git/PKGBUILD b/heptagon-git/PKGBUILD new file mode 100644 index 0000000..cda1588 --- /dev/null +++ b/heptagon-git/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Mylloon + +# 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 +}