summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4bda3a82b9ae31ef752445856f5fb8f88ed7f3b4 (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
# Maintainer: Vitaliy VVS Star <vitaliy <dot> star <at> Gmail-DOT-Com>

pkgname=kudu-bin
pkgver=3.6.1
pkgrel=1
pkgdesc="A modern, open-source system cleaner for Windows, macOS, and Linux"
arch=('x86_64')
url="https://github.com/AdventDevInc/kudu"
license=('MIT')
depends=(
  'gtk3'
  'nss'
  'libxss'
  'alsa-lib'
  'mesa'
  'fuse2'
)
provides=('kudu')
conflicts=('kudu')
options=('!strip')
noextract=("${pkgname}-${pkgver}.deb")
source_x86_64=("${pkgname}-${pkgver}.deb::https://github.com/AdventDevInc/kudu/releases/download/v${pkgver}/Kudu-${pkgver}-amd64.deb")
sha256sums_x86_64=('b48a91b5fa5972a86ad57cb9c276d2c7f36bbda34eb48e8b3ec2ae7e1f07f5b6')

package() {
  bsdtar -xf "${pkgname}-${pkgver}.deb" data.tar.xz
  bsdtar -xJf data.tar.xz -C "${pkgdir}"

  # SUID sandbox (upstream postinst does the same)
  chmod 4755 "${pkgdir}/opt/Kudu/chrome-sandbox"

  install -d "${pkgdir}/usr/bin"
  ln -s /opt/Kudu/kudu "${pkgdir}/usr/bin/kudu"

  install -Dm644 "${pkgdir}/opt/Kudu/LICENSE.electron.txt" \
    "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}