blob: 2ef113a8206e70348e90c2ab36ab1b4412275809 (
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
# Maintainer: peippo <christoph.fink@gmail.com>
pkgname=martin
pkgdesc="A tile server able to generate and serve vector tiles on the fly"
url="https://maplibre.org/martin/"
pkgver=0.16.0
pkgrel=2
arch=("x86_64" "i686")
license=("Apache-2.0 OR MIT")
depends=(
"gcc-libs"
"glibc"
)
makedepends=(
"cargo"
"npm"
)
options=("!lto")
backup=("etc/${pkgname}/config.yaml")
source=(
"${pkgname}-${pkgver}.tar.gz::https://static.crates.io/crates/${pkgname}/${pkgname}-${pkgver}.crate"
"${pkgname}-${pkgver}-LICENSE-APACHE::https://github.com/maplibre/martin/raw/refs/heads/main/LICENSE-APACHE"
"${pkgname}-${pkgver}-LICENSE-MIT::https://github.com/maplibre/martin/raw/refs/heads/main/LICENSE-MIT"
"${pkgname}.service"
"${pkgname}.sysusers.d"
"${pkgname}-config.yaml"
)
b2sums=(
"1f3ec9a6a4e17cc0874cea73282be827bad5112d1dd2bebcc60675bd625e4a3d4809f29295a273ee3bc4ed8a2480c94af9c98c832936d5c50d334b639010f936"
"21fadd835dd2d39db33e007a95f4ce46277c5c87902a6e8a530673ceab9b4d13246fb80f93906e9cc684db6e35f6ead13cf71c553468f3a07df6e1c7d9b85b4b"
"fc19c34e958648930a8d8cc56542ffd8eabdea36954d61e9e2f8c6b7f48bef66a61233c5097a5b4f40b79321bfb16b8ef445de0460af115413f7fd3dea825bc9"
"c3b79402f4ae27fd46915e5aab9efb7722ccc2c1d37155119c32e59fce695b784b98bf83aa46e80f6a83756850b8794ee0752eaebd9a9001d48b0f4d5ae791ca"
"24e80b2adf58036276b6026e41914bc4ee4ca107f8a7bb62afc271273d975997632130a21a400819d9182a28e68309c814fcb908c2edcfd05ae2ff23209c4f24"
"e13928d24f652f27b97590512051bf19937f2964c5d92d43c9f3b77b89bb846725c2172e15c532d422a27aa52c7f02d70549f5a524f5ea7b46b4824a16b07d12"
)
prepare() {
cd "${srcdir}"/${pkgname}-${pkgver}
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd "${srcdir}"/${pkgname}-${pkgver}
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --frozen --release --all-features
}
package() {
cd "${srcdir}"/${pkgname}-${pkgver}
install -Dm 0755 \
"target/release/martin" \
"${pkgdir}/usr/bin/martin"
install -Dm 0755 \
"target/release/martin-cp" \
"${pkgdir}/usr/bin/martin-cp"
install -Dm 0644 \
"README.md" \
"${pkgdir}/usr/share/docs/${pkgname}/README.md"
cd "${srcdir}"
install -Dm 0644 \
"${pkgname}.service" \
"${pkgdir}/usr/lib/systemd/system/${pkgname}.service"
install -Dm 0644 \
"${pkgname}.sysusers.d" \
"${pkgdir}/usr/lib/sysusers.d/${pkgname}.conf"
install -Dm 0644 \
"${pkgname}-config.yaml" \
"${pkgdir}/etc/${pkgname}/config.yaml"
install -Dm 0644 \
"${pkgname}-${pkgver}-LICENSE-APACHE" \
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-APACHE"
install -Dm 0644 \
"${pkgname}-${pkgver}-LICENSE-MIT" \
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-MIT"
}
|