summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 96094252cffb74c9f3d2d69ba1985d0447fd2730 (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
# Maintainer: Razer <razer[AT]neuf[DOT]fr>
pkgbasename=gnome-shell-extension-bubblemail
pkgname=${pkgbasename}-git
pkgver=1.2.r4.gafd29ad
pkgrel=0
pkgdesc="Unread mail notification service: Gnome shell extension"
pkgfolder="bubblemail-gnome-shell"
provides=("${pkgbasename}")
conflicts=("${pkgbasename}")
arch=(any)
url="https://framagit.org/razer/bubblemail-gnome-shell/"
license=('GPL2')
makedepends=('meson')
depends=('dconf' 'gnome-shell' 'bubblemail-git')
source=("git+https://framagit.org/razer/bubblemail-gnome-shell.git")
sha256sums=('SKIP')

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

build() {
    cd ${srcdir}/${pkgfolder}
    meson -Dprefix=/usr _build
    ninja -C _build build
}

package() {
    cp -r ${srcdir}/${pkgfolder}/_build/_package/* ${pkgdir}
}