diff options
author | Stefan Biereigel | 2022-12-06 14:53:03 +0100 |
---|---|---|
committer | Stefan Biereigel | 2022-12-06 14:53:03 +0100 |
commit | 6958f4d0b16c9dad7e1bebf7b0c96176a26c1970 (patch) | |
tree | 0d67370ebcdbf54bd3bcc895cf2a8aabdb7e54d2 | |
download | aur-6958f4d0b16c9dad7e1bebf7b0c96176a26c1970.tar.gz |
initial packaging
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | PKGBUILD | 47 |
3 files changed, 71 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..69a0b6810bef --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = g4see-git + pkgdesc = Single Event Effect simulation toolkit based on Geant4 + pkgver = v0.5.1 + pkgrel = 1 + url = https://gitlab.cern.ch/g4see/g4see + arch = x86_64 + arch = aarch64 + license = GPL3 + makedepends = cmake + depends = geant4 + depends = python + provides = g4see + conflicts = g4see + source = git+https://gitlab.cern.ch/g4see/g4see.git + source = git+https://gitlab.cern.ch/g4see/g4see-scripts.git + sha1sums = SKIP + sha1sums = SKIP + +pkgname = g4see-git diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..4787efa7f694 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +g4see-scripts/ +g4see/ +pkg/ +src/ +*pkg* diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..27e6717e73e8 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,47 @@ +# Maintainer: Stefan Biereigel <stefan@biereigel.de> + +pkgname=g4see-git +pkgver=v0.5.1 +pkgrel=1 +pkgdesc='Single Event Effect simulation toolkit based on Geant4' +arch=('x86_64' 'aarch64') +url='https://gitlab.cern.ch/g4see/g4see' +license=('GPL3') +depends=('geant4' 'python') +makedepends=('cmake') +conflicts=('g4see') +provides=('g4see') +source=("git+https://gitlab.cern.ch/g4see/g4see.git" + "git+https://gitlab.cern.ch/g4see/g4see-scripts.git") +sha1sums=('SKIP' 'SKIP') + +_gitname='g4see' + +pkgver() { + cd "$srcdir/$_gitname" + git describe --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +prepare() { + cd "$srcdir/$_gitname" + git submodule init + git submodule set-url g4see-scripts "$srcdir/g4see-scripts" + git -c protocol.file.allow=always submodule update +} + +build() { + cd "$srcdir/$_gitname" + mkdir build && cd build + export CXXFLAGS="${CFLAGS}" # binaries crash when compiled with -D_GLIBCXX_ASSERTIONS + cmake -DCMAKE_INSTALL_PREFIX="$pkgdir"/usr .. + make +} + +package() { + cd "$srcdir/$_gitname/build" + + make install + install -Dm644 -t "$pkgdir"/usr/share/licenses/"$pkgname" ../LICENSES/* +} + +# vim:set ts=2 sw=2 et: |