This repository has been archived by the owner on May 20, 2023. It is now read-only.
/
PKGBUILD
47 lines (40 loc) · 1.87 KB
/
PKGBUILD
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
# Maintainer: Jelle van der Waa <jelle@archlinux.org>
pkgname=rebuilderd-website
pkgver=0.5.5
pkgrel=1
pkgdesc="Arch Linux Rebuilderd website reproducible.archlinux.org"
license=('MIT')
arch=(any)
depends=()
makedepends=('yarn' 'ruby-sass' 'make' 'git' 'svgcleaner')
url="https://gitlab.archlinux.org/archlinux/rebuilderd-website"
validpgpkeys=('E499C79F53C96A54E572FEE1C06086337C50773E')
source=("git+https://gitlab.archlinux.org/archlinux/rebuilderd-website.git#tag=v${pkgver}?signed"
"git+https://gitlab.archlinux.org/archlinux/archlinux-common-style.git")
sha512sums=('SKIP'
'SKIP')
prepare() {
cd ${pkgname}
git submodule init
git config submodule..external/archlinux-common-style.url "$srcdir/archlinux-common-style"
git -c protocol.file.allow=always submodule update
}
build() {
cd ${pkgname}
make dist
}
package() {
cd ${pkgname}
install -d ${pkgdir}/usr/share/webapps/${pkgname}
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
# Install web files
install -Dm644 dist/${pkgname}-${pkgver}/index.html "${pkgdir}/usr/share/webapps/${pkgname}/index.html"
install -Dm644 dist/${pkgname}-${pkgver}/favicon.ico "${pkgdir}/usr/share/webapps/${pkgname}/favicon.ico"
install -Dm644 dist/${pkgname}-${pkgver}/archlogo-${pkgver}.svg "${pkgdir}/usr/share/webapps/${pkgname}/archlogo-${pkgver}.svg"
install -Dm644 dist/${pkgname}-${pkgver}/bundle-${pkgver}.css "${pkgdir}/usr/share/webapps/${pkgname}/bundle-${pkgver}.css"
install -Dm644 dist/${pkgname}-${pkgver}/bundle-${pkgver}.js "${pkgdir}/usr/share/webapps/${pkgname}/bundle-${pkgver}.js"
# TODO: Fix in Makefile
install -d ${pkgdir}/usr/share/webapps/${pkgname}/icons
install -Dm644 public/icons/note-16.svg "${pkgdir}/usr/share/webapps/${pkgname}/icons/note-16.svg"
install -Dm644 public/icons/search-16.svg "${pkgdir}/usr/share/webapps/${pkgname}/icons/search-16.svg"
}