summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cb6ce9f644fd0de709ac49855b5cd2bc7415e135 (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: Yadav Gowda <yadav . gowda __at__ gmail . com>
pkgname=gnome-flashback-xmonad
pkgver=r25.1242fc4
pkgver() {
    cd "${pkgname%-git}"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
pkgrel=1
pkgdesc="XMonad support for Gnome Flashback"
arch=('any')
url="https://github.com/tlonic/gnome-flashback-xmonad"
license=('GPL')
depends=('xmonad' 'gnome-flashback' 'compton')
source=('gnome-flashback-xmonad::git+https://github.com/tlonic/gnome-flashback-xmonad.git')
md5sums=('SKIP')

package() {
    cd "$srcdir/${pkgname%-git}"
    mkdir -p "$pkgdir/usr/share/xsessions"
    mkdir -p "$pkgdir/usr/lib/gnome-flashback"
    mkdir -p "$pkgdir/usr/share/gnome-session/sessions"
    mkdir -p "$pkgdir/usr/share/applications"
    mkdir -p "$pkgdir/usr/lib/systemd/user/"
    cp "xmonad.desktop" "$pkgdir/usr/share/applications/xmonad.desktop"
    cp "gnome-flashback-xmonad.desktop" "$pkgdir/usr/share/xsessions/"
    cp "gnome-flashback-xmonad.session" "$pkgdir/usr/share/gnome-session/sessions/"
    cp "gnome-flashback-xmonad" "$pkgdir/usr/lib/gnome-flashback/"
    cp 'gnome-session-x11@gnome-flashback-xmonad.target' "$pkgdir/usr/lib/systemd/user/" 
}