Skip to content

Commit

Permalink
Add files for chapel-git
Browse files Browse the repository at this point in the history
Signed-off-by: ghbrown <[email protected]>
  • Loading branch information
ghbrown committed Jun 1, 2022
1 parent d3e4bb9 commit 3571c70
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
18 changes: 18 additions & 0 deletions util/packaging/aur/chapel-git/.SRCINFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
pkgbase = chapel-git
pkgdesc = Programming language designed for productive parallel computing at scale
pkgver = 1.26.cc0241ef9c
pkgrel = 1
url = https://chapel-lang.org/
arch = x86_64
arch = arm
license = Apache
makedepends = git
makedepends = cmake
depends = python
depends = perl
depends = llvm
depends = clang
source = git+https://github.com/mppf/chapel.git
sha256sums = SKIP

pkgname = chapel-git
42 changes: 42 additions & 0 deletions util/packaging/aur/chapel-git/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@

# Maintainer: Gabriel Brown <[email protected]>

#_gituser="chapel-lang"
_gituser="mppf" #temp: until PR #19913 is merged
_gitname="chapel"

pkgname=${_gitname}-git
_basepkgver=1.26
pkgver=1.26.cc0241ef9c
pkgrel=1
pkgdesc="Programming language designed for productive parallel computing at scale"
url="https://chapel-lang.org/"
arch=('x86_64' 'arm')
license=('Apache')
depends=('python' 'perl' 'llvm' 'clang')
makedepends=('git' 'cmake')
source=("git+https://github.com/${_gituser}/${_gitname}.git")
sha256sums=('SKIP') # source is not static

pkgver() {
cd "${srcdir}/${_gitname}"
git describe --long --tags --always | sed 's/\-/\./' | echo "${_basepkgver}.$(cat -)"
}

build() {
cd "${srcdir}/${_gitname}"
git checkout less-la #temp: until PR #19913 is merged
./configure --prefix=/usr
make
}

check() {
cd "${srcdir}/${_gitname}"
export PATH="${srcdir}/${_gitname}/bin/linux64-x86_64:${PATH}"
make check
}

package() {
cd "${_gitname}"
make DESTDIR="${pkgdir}" install
}

0 comments on commit 3571c70

Please sign in to comment.