summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0b67480160b0340d3d5817e3ea86262b5ff10f4d (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
# Maintainer: Bert Peters <bert@bertptrs.nl>
pkgname='gnome-shell-extension-netctl-auto-gnome-git'
pkgver=r27.80a54b6
pkgrel=1
pkgdesc='Allows you to switch between netctl profiles using a menu in the GNOME notification area.'
arch=(any)
url="https://github.com/nigeil/netctl-auto-gnome"
license=('GPL3')
depends=('gnome-shell' 'netctl' 'wpa_actiond')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("${pkgname%-git}::git+https://github.com/nigeil/netctl-auto-gnome.git")
sha256sums=('SKIP')

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

	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
	cd "$srcdir/${pkgname%-git}"
	local ext_name='netctl-auto-gnome@nigelmichki.ninja'
	install -Dm644 -t "$pkgdir/usr/share/gnome-shell/extensions/$ext_name" "$ext_name/"*
}