summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 67c77205113a4af1abb90b959a861be39942cb75 (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
# Maintainer: Yamato Kobayashi <yk.ymadd@gmail.com>
# Contributor: Felix Golatofski <contact@xdfr.de>

pkgname=webrecorder-desktop-appimage
_pkgname=Webrecorder
pkgver=2.0.3
pkgrel=1
pkgdesc="The Webrecorder Desktop App is a complete packaging of Webrecorder hosted service as an Electron application, with an integrated Chromium browser."
provides=('webrecorder')
conflicts=('webrecorder')
arch=('x86_64')
url="https://github.com/webrecorder/webrecorder-desktop"
license=(unknown)
depends=('redis')
makedepends=('git')
noextract=('Webrecorder.AppImage')
options=(!strip)
_appimg="Webrecorder.AppImage"

source=("Webrecorder.AppImage::${url}/releases/download/v${pkgver}/${_pkgname}-${pkgver}.AppImage"
	"webrecorder.desktop")

sha512sums=('69943a25895611d0e7deabb526dfe6025b673e503e32992f2bde9139c14b764f8a7714c0f44190b759a79f83dcf7085c6670420bc5b2dfda2c02c70ba419bf6b'
            '5d6154b7f77f6878d7d02df5cb354157a220baed847dd21b9d512ec6ab133b4add3d1084359dbc1b70ac3e95afbd4d096b7ad86f0fdeec1e77ea6d2038ac1da3')

prepare(){
    chmod +x $_appimg
    ./$_appimg --appimage-extract
}

package() {
    #install appimage
    install -Dm755 $_appimg "${pkgdir}/usr/bin/webrecorder"

    #install desktop
    install -Dm755 webrecorder.desktop "${pkgdir}/usr/share/applications/webrecorder.desktop"
    
    #install icon
    install -Dm644 "${srcdir}/squashfs-root/webrecorder.png" "${pkgdir}/usr/share/pixmaps/webrecorder.png"
}