summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5af0c3131416a519b9cf032bc55b8a0d8b6c0b99 (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
# Maintainer: Omid Mottaghi Rad <omidmr at gmail dot com>
# Co-Maintainer: M A <morealaz at gmail dot com>

pkgname=gnome-shell-extension-persian-calendar-git
pkgver=r155.362532a
pkgrel=1
pkgdesc="Persian calendar for Gnome Shell."
arch=(any)
url="https://github.com/omid/Persian-Calendar-for-Gnome-Shell"
license=(GPL3)
depends=('gnome-shell>=3.24')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=("${pkgname%-git}")
makedepends=(git)
install='gnome-shell-extension.install'
source=("${pkgname%-git}"::"git+https://github.com/omid/Persian-Calendar-for-Gnome-Shell")
sha256sums=('SKIP')

pkgver() {
    cd "$srcdir/${pkgname%-git}"
    ( set -o pipefail
    git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
    )
}

package() {
    install -d "${pkgdir}/usr/share/gnome-shell/extensions/"
    cp -a "${pkgname%-git}/PersianCalendar@oxygenws.com" \
        "${pkgdir}/usr/share/gnome-shell/extensions/"
}
# vim:set ts=4 sw=4 et: