summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 60c2f58fe74ffbce2e07c16a1b61772b659b7beb (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
# Contributor: Yamada Hayao <hayao@fascode.net>
# Maintainer: Matrix <thysupremematrix a_t tuta d_o_t io>

_extname='desktop-icons-ng'
pkgname="gnome-shell-extension-${_extname}"
pkgver="47"
pkgrel=1
pkgdesc="A fork from the official desktop icons project, with several enhancements like Drag'n'Drop."
arch=('x86_64' 'i686')
url="https://gitlab.com/rastersoft/desktop-icons-ng/"
license=('GPL3')
depends=('gnome-shell')
makedepends=('git' 'meson' 'glib2')
conflicts=("${pkgname}-git")
source=("${_extname}-${pkgver}.tar.gz::https://gitlab.com/rastersoft/${_extname}/-/archive/${_pkgver}/${_extname}-${_pkgver}.tar.gz")
sha512sums=('a52131e89b54a7d7400bb0269403dbee7e5173347863721f8191a0e3b6fde7bdc3f83ee8bd71b132191e170566e237704645bb71ef3cd748a350ab60f09deb33')



build() {
	cd $srcdir/$_extname-$pkgver/	
	_uuid=$(grep -Po '(?<="uuid": ")[^"]*' metadata.json)
	
	DESTDIR="$pkgdir/usr" meson --prefix="$srcdir/$_extname-$pkgver/$_uuid" --localedir=locale "build" "."
	cd build
	meson install
}

package() {
	cd $srcdir/$_extname-$pkgver/
	_uuid=$(grep -Po '(?<="uuid": ")[^"]*' metadata.json)
	
	install -dm755 "${pkgdir}/usr/share/gnome-shell/extensions/${_uuid}"

	cd $srcdir/$_extname-$pkgver/$_uuid
	cp -dpr --no-preserve=ownership ./* "${pkgdir}/usr/"
	mv $pkgdir/usr/locale $pkgdir/usr/share/locale

}