Created
September 24, 2020 23:10
-
-
Save mspaulding06/6ced050a930b81ab54768668318f666c to your computer and use it in GitHub Desktop.
PKGBUILD (not patch) for gerbil-scheme-git in AUR
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is an example PKGBUILD file. Use this as a start to creating your own, | |
# and remove these comments. For more information, see 'man PKGBUILD'. | |
# NOTE: Please fill out the license field for your package! If it is unknown, | |
# then please put 'unknown'. | |
# See http://wiki.archlinux.org/index.php/VCS_PKGBUILD_Guidelines | |
# for more information on packaging from GIT sources. | |
# Maintainer: Peter <craven@gmx.net> | |
pkgname=gerbil-scheme-git | |
pkgver=0.16.r139.g41625f7b | |
pkgrel=1 | |
pkgdesc="Gerbil is an opinionated dialect of Scheme designed for Systems Programming, with a state of the art macro and module system on top of the Gambit runtime." | |
arch=(x86_64 i686) | |
url="https://github.com/vyzo/gerbil" | |
license=('LGPLv2.1' 'Apache 2.0') | |
groups=() | |
depends=('gambit-c') | |
makedepends=('git' 'gambit-c') | |
provides=() | |
conflicts=() | |
replaces=() | |
backup=() | |
options=() | |
install= | |
source=('gerbil::git+https://github.com/vyzo/gerbil.git#branch=master') | |
md5sums=('SKIP') | |
noextract=() | |
#generate with 'makepkg -g' | |
pkgver() { | |
cd gerbil | |
# cutting off 'v' prefix that presents in the git tag | |
git describe --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' | |
} | |
build() { | |
cd "$srcdir/gerbil/src" | |
./configure | |
GERBIL_GSC=/usr/bin/gsc-script ./build.sh | |
} | |
package() { | |
cd "$srcdir/gerbil" | |
mkdir -p ${pkgdir}/opt/gerbil-scheme-git | |
cp -R bin ${pkgdir}/opt/gerbil-scheme-git/bin | |
cp -R doc ${pkgdir}/opt/gerbil-scheme-git/doc | |
cp -R etc ${pkgdir}/opt/gerbil-scheme-git/etc | |
cp -R lib ${pkgdir}/opt/gerbil-scheme-git/lib | |
cp -R CHANGELOG.md ${pkgdir}/opt/gerbil-scheme-git/CHANGELOG.md | |
cp -R README.md ${pkgdir}/opt/gerbil-scheme-git/README.md | |
mkdir -p ${pkgdir}/etc/profile.d/ | |
cat <<EOF > ${pkgdir}/etc/profile.d/gerbil-scheme-git.sh | |
#!/bin/bash | |
export GERBIL_GSC=/usr/bin/gsc-script | |
export GERBIL_HOME=/opt/gerbil-scheme-git | |
export PATH=/opt/gerbil-scheme-git/bin:\$PATH | |
EOF | |
} | |
# vim:set ts=2 sw=2 et: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment