summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b09e62332be66cd02a0518daadcb957d7cc22e6e (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
# Maintainer: Torben <git at letorbi dot com>

pkgname=gnome-shell-extension-desktop-icons-ng-git
pkgver=47.0.7.r6.gdf4108a
pkgrel=1
pkgdesc="A fork from the official desktop icons project, with several enhancements like Drag'n'Drop."
arch=('any')
url="https://gitlab.com/rastersoft/desktop-icons-ng"
license=('GPL3')
depends=('gnome-shell>=45' nautilus dconf gjs)
makedepends=(meson glib2)
conflicts=('gnome-shell-extension-desktop-icons-ng')
source=('git+https://gitlab.com/rastersoft/desktop-icons-ng.git')
sha256sums=('SKIP')

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

build() {
    cd "${srcdir}/desktop-icons-ng"
    meson --prefix=/usr --localedir=share/gnome-shell/extensions/ding@rastersoft.com/locale build
    ninja -v -C build
}

package() {
    cd "${srcdir}/desktop-icons-ng"
    DESTDIR="${pkgdir}" ninja -v -C build install
}