blob: 1c3d50a17ec828f5653044fac8877119b42b6b56 (
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
|
# Maintainer: envolution
# Contributor: Ralph Torres <mail@ralphptorr.es>
# Contributor: Rene Hickersberger <r@renehsz.com>
# Contributor: White-Oak <lpzhelud@gmail.com>
# Contributor: Solomon Choina <shlomochoina@gmail.com>
# shellcheck shell=bash disable=SC2034,SC2154
pkgname=servo-nightly-bin
_pkgname=servo
pkgver=20250114
pkgrel=2
pkgdesc='embeddable, independent, memory-safe, modular, parallel web rendering engine'
arch=(x86_64)
url=https://servo.org
license=(MPL-2.0)
# prepare download URL from stored pkgver
_datecode=$(echo "$pkgver" | sed 's/\(....\)\(..\)\(..\)/\1-\2-\3/')
_url="https://github.com/servo/servo-nightly-builds/releases/download/$_datecode"
provides=($_pkgname)
conflicts=($_pkgname)
depends=(gst-plugins-bad libunwind)
source=(
"$_pkgname-$pkgver.tar.gz"::"$_url/$_pkgname-latest.tar.gz"
"$_pkgname-$pkgver.tar.gz.sha256"::"$_url/$_pkgname-latest.tar.gz.sha256"
https://raw.githubusercontent.com/servo/servo/main/LICENSE
servo.desktop
)
sha256sums=('339cb1a190f41913398ff28f50b48847142dad069ecfd3189f983436bcfa5724'
'25cc0eb9016c65b0fef01de039b412014c810f4af0e5df5dd31f88e309ba4be5'
'1af2d2b02d9c86030d29ed77117ca7a1b0e4b6ff35bcf8eeb124867d0f5cb59e'
'7a6cd816c35b9b42a27d83efbe72b3ac6bc79f2044153410fa434d7625f442ad')
prepare() {
sha256sum $_pkgname-$pkgver.tar.gz | sha256sum -c
}
package() {
install -Dm644 -t "$pkgdir"/usr/share/applications $_pkgname.desktop
install -Dm644 -t "$pkgdir"/usr/share/licenses/$_pkgname LICENSE
install -Dm755 /dev/stdin "$pkgdir"/usr/bin/$_pkgname <<END
#!/bin/sh
exec /usr/lib/servo/servo "\$@"
END
install -Dm755 "$_pkgname/$_pkgname" "$pkgdir/usr/lib/$_pkgname/$_pkgname"
cp -r "$_pkgname/resources" "$pkgdir/usr/lib/$_pkgname"
find "$pkgdir/usr/lib/$_pkgname/resources" -type d -exec chmod 755 {} +
find "$pkgdir/usr/lib/$_pkgname/resources" -type f -exec chmod 644 {} +
}
# vim:set ts=2 sw=2 et:
|