blob: 0fa8c8725e09453ebffba0246d08d2f19b7ecd0b (
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
|
# Maintainer: LS-Shandong < ls-shandong at outlook dot com >
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=artanis-git
pkgver=1.2.2.r0.g21ceb29
pkgrel=4
pkgdesc="A fast monolithic web-framework of Scheme"
url="https://gitlab.com/hardenedlinux/artanis"
depends=('guile>=3.0.5' 'guile-curl' 'guile-redis' 'guile-json' 'nss' 'texinfo')
makedepends=('git')
optdepends=('guile-dbi: A simple, generic, easy-to-use guile scheme interface to SQL databases, such as Postgres, MySQL or SQLite3'
'guile-dbd-sqlite3: The dbd plugin connects to an actual SQLite database server.'
'guile-dbd-postgresql: The dbd plugin connects to an actual PostgreSQL database server.'
'guile-dbd-mysql: The dbd plugin connects to an actual MySQL database server.')
arch=('x86_64' 'aarch64')
license=('GPL3' 'LGPL3')
source=(${pkgname}::git+$url.git)
sha256sums=('SKIP')
options=('!strip')
conflicts=('artanis')
provides=('artanis')
pkgver() {
cd "$pkgname"
# 移除 Git 标签中的 'v' 前缀
git describe --long --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$pkgname"
./autogen.sh –no-configure
./configure --prefix=/usr
make
sed -i -e '219,220s/^/#/' -e "227s/^#/$(echo -e '\t')/" Makefile
sed -i '64,67!b;66b;s/true/false/g' build-aux/gendocs.sh
make docs
}
check() {
cd "$pkgname"
export GUILE_LOAD_PATH=$GUILE_LOAD_PATH:.
guile -c '(display (@ (artanis artanis) artanis-version))'
}
package() {
cd "$pkgname"
make DESTDIR="$pkgdir" install
install -Dm755 "$pkgdir"/bin/art "$pkgdir"/usr/bin/art
install -Dm644 "${srcdir}/${pkgname}/obj/docs/manuals/artanis.info.tar.gz" "$pkgdir/usr/share/info/artanis.info.tar.gz"
rm -rf "$pkgdir"/bin
}
|