summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5b667c14a3950d831305653d29a19b1f75d2869a (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# Maintainer: czyt <czytcn@gmail.com>

pkgname=minke-bin
pkgver=0.9.0
pkgrel=1
pkgdesc="Minke desktop agent powered by DeepSeek Harness"
arch=('x86_64')
url="https://github.com/lencx/Minke"
license=('Apache-2.0')

depends=(
  'alsa-lib'
  'at-spi2-core'
  'cairo'
  'dbus'
  'expat'
  'gcc-libs'
  'glib2'
  'glibc'
  'gtk3'
  'libcups'
  'libdrm'
  'libevdev'
  'libnotify'
  'libsecret'
  'libx11'
  'libxcb'
  'libxcomposite'
  'libxdamage'
  'libxext'
  'libxfixes'
  'libxkbcommon'
  'libxrandr'
  'libxss'
  'libxtst'
  'mesa'
  'nspr'
  'nss'
  'pango'
  'systemd-libs'
  'util-linux-libs'
  'wayland'
  'xdg-utils'
)
optdepends=(
  'pulseaudio: audio playback (or pipewire)'
)
makedepends=('libarchive')
provides=("minke=${pkgver}")
conflicts=('minke')
options=('!debug' '!strip')

_deb="Minke-linux-x64-${pkgver}.deb"
source=("${_deb}::https://github.com/lencx/Minke/releases/download/v${pkgver}/Minke-linux-x64.deb")
noextract=("${_deb}")
sha256sums=('a1c3728cb38a35e7398a9120470243f608da234a01ea8cf22b9a027f8ef0b742')

package() {
  local data_archive

  data_archive="$(bsdtar -tf "${srcdir}/${_deb}" | sed -n '/^data\.tar\./{p;q;}')"
  if [[ -z "${data_archive}" ]]; then
    error "Could not find data.tar.* in ${_deb}"
    return 1
  fi

  bsdtar -xOf "${srcdir}/${_deb}" "${data_archive}" |
    bsdtar --no-same-owner -xf - -C "${pkgdir}"

  # Restore the Chromium sandbox setuid bit (lost when extracting as non-root).
  chmod 4755 "${pkgdir}/usr/lib/minke/chrome-sandbox"

  # Debian packaging metadata is not used on Arch Linux.
  rm -r "${pkgdir}/usr/share/lintian"
}