summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: da0f914faa6446e8cc47803c0795ab633e4ac1cc (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
pkgname=yay-gui-manager-git
_pkgname=yay-gui-manager
pkgver=0
pkgrel=1
pkgdesc="Graphical interface for the yay AUR helper"
arch=('any')
url="https://github.com/ahmoodio/yay-gui-manager"
license=('MIT')
depends=('python' 'python-pyqt5' 'yay')
makedepends=('git')
provides=('yay-gui-manager')
conflicts=('yay-gui-manager')

source=(
  "git+https://github.com/ahmoodio/yay-gui-manager.git"
  "yay-gui.desktop"
  "yay-gui.png"
)

sha256sums=(
  'SKIP'  # git source
  'SKIP'  # yay-gui.desktop
  'SKIP'  # yay-gui.png
)

pkgver() {
  cd "${srcdir}/${_pkgname}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  # Python + PyQt5 app, nothing to compile
  return 0
}

package() {
  cd "${srcdir}/${_pkgname}"

  # Main executable
  install -Dm755 "yay_gui.py" \
    "${pkgdir}/usr/bin/yay-gui-manager"

  # Desktop entry (from AUR repo)
  install -Dm644 "${srcdir}/yay-gui.desktop" \
    "${pkgdir}/usr/share/applications/yay-gui.desktop"

  # Icon (from AUR repo)
  install -Dm644 "${srcdir}/yay-gui.png" \
    "${pkgdir}/usr/share/icons/hicolor/256x256/apps/yay-gui.png"

  # License
  install -Dm644 "LICENSE" \
    "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}