summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ce2b3bfda0200dbce1b645887e7bedf7e8ca4769 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Maintainer: Eli Schwartz <eschwartz@archlinux.org>

# All my PKGBUILDs are managed at https://github.com/eli-schwartz/pkgbuilds

pkgname=cinnamon-settings-daemon-git
pkgver=6.0.0.r0.gebff319
pkgrel=1
pkgdesc="The Cinnamon Settings daemon"
arch=('i686' 'x86_64')
url="https://github.com/linuxmint/${pkgname%-git}"
license=('GPL')
depends=('cinnamon-desktop>=4.4.1.r7.gf2c6cb7' 'colord' 'dbus-glib' 'libcanberra-pulse' 'libcups'
         'libgnomekbd' 'libgudev' 'libnotify' 'librsvg' 'libwacom' 'nss' 'polkit'
         'pulseaudio-alsa' 'upower')
optdepends=('cinnamon-translations: i18n')
makedepends=('git' 'meson' 'samurai' 'intltool' 'python' 'xf86-input-wacom')
provides=("${pkgname%-git}=${pkgver}")
conflicts=("${pkgname%-git}")
options=('!emptydirs')
source=("git+${url}.git")
sha256sums=('SKIP')

pkgver() {
    cd "${srcdir}"/${pkgname%-git}

    git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
  cd "${srcdir}"/${pkgname%-git}
  [[ -d build ]] || mkdir build
}

build() {
    cd "${srcdir}"/${pkgname%-git}/build
    meson --prefix=/usr \
                --sysconfdir=/etc \
                --localstatedir=/var \
                --libexecdir="/usr/lib/${pkgname%-git}" \
                ..
 
    samu
}

package() {
    cd "${srcdir}"/${pkgname%-git}/build
    DESTDIR="${pkgdir}" samu install
}