summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3d7752af63a750c9e3f56fa4ba354efc7cb437ec (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
# Maintainer: jlaunay
pkgname=waybar-updates-git
pkgver=0.2.10.r17.gb12e7df
pkgrel=1
pkgdesc="Tiny Waybar module to check Arch Linux updates from official repositories and AUR"
arch=('any')
url="https://github.com/L11R/waybar-updates"
license=("MIT")
depends=('bash' 'coreutils' 'pacman-contrib' 'gettext' 'curl' 'jq' 'libnotify')
provides=('waybar-updates')
source=("git+https://github.com/L11R/${pkgname/-git}.git")
sha256sums=('SKIP')

build() {
    cd "${pkgname/-git}"
    make all
}

pkgver() {
  cd "${pkgname/-git}"
  git describe --tags --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
    cd "${pkgname/-git}"
    make DESTDIR="$pkgdir/" PREFIX=/usr MANDIR=/usr/share/man install
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}