systrayUpdater/PKGBUILD

29 lines
790 B
Bash

# Maintainer: Eric Lay <ericlaytm@gmail.com>
pkgname=systrayupdater
pkgver=0.1
pkgrel=1
pkgdesc="PyQt5 system tray applet to notify of available updates"
arch=('x86_64')
url="https://github.com/ericlay/$pkgname"
license=('GPL3')
depends=('python'
'python-pyqt5'
'python-yaml'
'python-jaraco.functools'
'pacman')
makedepends=('git')
optdepends=()
source=("git+https://github.com/ericlay/fuzzy-pkg-finder.git")
md5sums=('SKIP')
pkgver(){
cd "$pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd "$srcdir/$pkgname"
install -Dm755 systrayUpdater -t "$pkgdir/usr/bin"
install -Dm666 systrayUpdater.desktop -t "$pkgdir/usr/share/applications"
install -Dm755 ./*.png systrayupdater.yml -t "$pkgdir/$HOME/.config/$pkgname"
}