blob: c5edbbcf6d54404beef60435548be2f5898fe824 (
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
|
# Maintainer: jobol <jobol@nonadev.net>
pkgname=tr7
pkgver=1.0.10
pkgrel=1
epoch=
pkgdesc="A Tiny R7RS-small Scheme interpreter intended as an extension language for other applications."
arch=(x86_64 i686 armv7h aarch64)
url="https://gitlab.com/jobol/tr7"
license=('custom:0BSD')
groups=()
depends=(glibc)
makedepends=(gcc make)
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("https://gitlab.com/jobol/tr7/-/archive/v1.0.10/tr7-v1.0.10.tar.gz")
md5sums=("8a069f1d7bc83da0dd8cdeff2c3db11c")
noextract=()
validpgpkeys=()
build() {
cd ${srcdir}/${pkgname}-v${pkgver}
make EFLAGS="-Wl,-z,relro,-z,now -fPIE" OFLAGS="-O2 -g -DTR7_LIB_PATH=\"/usr/lib/tr7\"" tr7i libtr7.a tr7.html
strip tr7i
}
check() {
cd ${srcdir}/${pkgname}-v${pkgver}
make test
}
package() {
mkdir -p ${pkgdir}/usr/lib/tr7
mkdir -p ${pkgdir}/usr/bin/
mkdir -p ${pkgdir}/usr/include/
mkdir -p ${pkgdir}/usr/share/licenses/tr7
cd ${srcdir}/${pkgname}-v${pkgver}
cp -v COPYING ${pkgdir}/usr/share/licenses/tr7/
cp -v tr7i ${pkgdir}/usr/bin/
cp -v -r tr7libs/* ${pkgdir}/usr/lib/tr7/
cp -v libtr7.a ${pkgdir}/usr/lib/
cp -v tr7.h ${pkgdir}/usr/include/
}
|