archrelease: copy trunk to extra-x86_64
[arch-packages.git] / rebuilderd-website / trunk / PKGBUILD
blob8777622dafdbd8a70d7eaf19a540020af69a6c04
1 # Maintainer: Jelle van der Waa <jelle@archlinux.org>
3 pkgname=rebuilderd-website
4 pkgver=0.5.5
5 pkgrel=1
6 pkgdesc="Arch Linux Rebuilderd website reproducible.archlinux.org"
7 license=('MIT')
8 arch=(any)
9 depends=()
10 makedepends=('yarn' 'ruby-sass' 'make' 'git' 'svgcleaner')
11 url="https://gitlab.archlinux.org/archlinux/rebuilderd-website"
12 validpgpkeys=('E499C79F53C96A54E572FEE1C06086337C50773E')
13 source=("git+https://gitlab.archlinux.org/archlinux/rebuilderd-website.git#tag=v${pkgver}?signed"
14         "git+https://gitlab.archlinux.org/archlinux/archlinux-common-style.git")
15 sha512sums=('SKIP'
16             'SKIP')
18 prepare() {
19   cd ${pkgname}
20   git submodule init
21   git config submodule..external/archlinux-common-style.url "$srcdir/archlinux-common-style"
22   git -c protocol.file.allow=always submodule update
25 build() {
26   cd ${pkgname}
27   make dist
30 package() {
31   cd ${pkgname}
32   install -d ${pkgdir}/usr/share/webapps/${pkgname}
34   install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
36   # Install web files
37   install -Dm644 dist/${pkgname}-${pkgver}/index.html "${pkgdir}/usr/share/webapps/${pkgname}/index.html"
38   install -Dm644 dist/${pkgname}-${pkgver}/favicon.ico "${pkgdir}/usr/share/webapps/${pkgname}/favicon.ico"
39   install -Dm644 dist/${pkgname}-${pkgver}/archlogo-${pkgver}.svg "${pkgdir}/usr/share/webapps/${pkgname}/archlogo-${pkgver}.svg"
40   install -Dm644 dist/${pkgname}-${pkgver}/bundle-${pkgver}.css "${pkgdir}/usr/share/webapps/${pkgname}/bundle-${pkgver}.css"
41   install -Dm644 dist/${pkgname}-${pkgver}/bundle-${pkgver}.js "${pkgdir}/usr/share/webapps/${pkgname}/bundle-${pkgver}.js"
43   # TODO: Fix in Makefile
44   install -d ${pkgdir}/usr/share/webapps/${pkgname}/icons
45   install -Dm644 public/icons/note-16.svg "${pkgdir}/usr/share/webapps/${pkgname}/icons/note-16.svg"
46   install -Dm644 public/icons/search-16.svg "${pkgdir}/usr/share/webapps/${pkgname}/icons/search-16.svg"