summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7fd85cb6e2a78d3cd4501944fed7363a545d2374 (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
# Maintainer: tippfehlr <tippfehlr at tippfehlr dot eu>

pkgname=openbuilds-control-bin
pkgver=1.0.376
pkgrel=2
pkgdesc="Grbl Host / Interface for all CNC style machines running Grbl"
url="https://github.com/OpenBuilds/OpenBuilds-CONTROL"
license=("GPL-3.0-only")
arch=("x86_64")
provides=("openbuilds-control")
conflicts=("openbuilds-control")
depends=('glibc' 'gcc-libs' 'electron23' 'dbus' 'libxdamage' 'nss' 'at-spi2-core' 'cairo' 'alsa-lib' 'libdrm' 'gtk3' 'libxcomposite' 'expat' 'libx11' 'glib2' 'libxfixes' 'libcups' 'libxrandr' 'pango' 'nspr' 'python' 'libxcb' 'mesa' 'libxext' 'libxkbcommon' 'hicolor-icon-theme')
source=(
    "$url/releases/download/v${pkgver}/OpenBuildsCONTROL_${pkgver}_amd64.deb"
    "openbuildscontrol"
)
sha512sums=('eef65ebaea5fde809112dd46ed4552f1abc0f841368be014aeb4f449b72dbc5c3b992d73b50ac60ceb46fc70fcdc9fb1954e54de91eca37b03dd86af40b15dc8'
            '7d9833000c547ef14a0e7a272903991db3b3a2297527e2fd40d1e2a20c34f6771edce68b736a1859d6c3dd769f263ff90a073622f7bdcdd33a6274b40299f925')
prepare() {
    cd $srcdir
    tar -pxf data.tar.xz
    sed -i 's|Exec=.*|Exec=/usr/bin/openbuildscontrol %U|' usr/share/applications/openbuildscontrol.desktop
    sed -i 's/OpenBuildsCONTROL/OpenBuilds CONTROL/' usr/share/applications/openbuildscontrol.desktop
}

package() {
    cd $srcdir
    cp -ar "usr" "$pkgdir/"
    install -Dm644 "opt/OpenBuildsCONTROL/resources/app.asar" -t "$pkgdir/usr/lib/openbuilds-control/"
    install -Dm755 "openbuildscontrol" -t "$pkgdir/usr/bin/"
}