blob: 75b765e3aec77fe73a7bdbc458c07f0286e369c9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Maintainer: Jonas Hvid <mail@johv.dk>
# Contributor: Peter <peter@nexoid.at>
pkgname=s7
# Upstream publishes different versions with the same version number
pkgver=11.3.r20250129
_upstreamver=${pkgver%.*}
pkgrel=1
epoch=
pkgdesc="A Scheme implementation intended as an extension language for other applications."
arch=(x86_64 i686)
url="https://ccrma.stanford.edu/software/snd/snd/s7.html"
license=('custom:0BSD')
groups=()
depends=(glibc)
makedepends=(git rsync)
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
_commit="f3123c023b304aaa961b1a5ca911c83e45418419"
source=("https://cm-gitlab.stanford.edu/bil/s7/-/archive/$_commit/s7-$_commit.tar.gz" Makefile s7.pc pass-through-compiler-flags.patch)
sha256sums=(c4864bafe8f84696a4685dd5d4d25e6c912dc4b7c61b76a5454583c1cf260292 SKIP SKIP SKIP)
noextract=()
validpgpkeys=()
prepare() {
sed -i 's/XX\.X/'${_upstreamver}'/' s7.pc
cd s7-$_commit
cp ${srcdir}/Makefile .
patch -Np0 -i ${srcdir}/pass-through-compiler-flags.patch
}
build() {
cd s7-$_commit
make -j all
}
package() {
mkdir -vp ${pkgdir}/usr/lib/s7
mkdir -vp ${pkgdir}/usr/bin/
mkdir -vp ${pkgdir}/usr/include/
mkdir -vp ${pkgdir}/usr/lib/pkgconfig/
mkdir -vp ${pkgdir}/usr/share/doc/s7/
mkdir -vp ${pkgdir}/usr/share/licenses/s7/
cp -v ${srcdir}/s7.pc ${pkgdir}/usr/lib/pkgconfig/
echo '0-clause BSD' > ${pkgdir}/usr/share/licenses/s7/LICENSE
cd ${srcdir}/s7-$_commit
find . -name '*.scm' | rsync -va --files-from - ./ ${pkgdir}/usr/lib/s7
cp -v libc_s7.so ${pkgdir}/usr/lib/s7
cp -v s7 ${pkgdir}/usr/bin/
cp -v libs7.so ${pkgdir}/usr/lib/
cp -v s7.h ${pkgdir}/usr/include/
cp -v *.html ${pkgdir}/usr/share/doc/s7/
}
|