summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d5c56b6e159f8c4b42156f8e16ca68de08d83198 (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
# Maintainer: D3vil0p3r <vozaanthony[at]gmail[dot]com>

_pkgname=gnome-shell-extension-arc-menu
pkgname="$_pkgname-git"
pkgver=62.r0.g446c923
pkgrel=1
pkgdesc='Application menu extension for GNOME Shell.'
url='https://gitlab.com/arcmenu/ArcMenu'
license=('GPL-2.0-or-later')
arch=('any')

depends=(
  'gettext'
  'gnome-shell'
  'gnome-menus'
  'xdg-user-dirs-gtk'
  'xdg-utils'
)
makedepends=(
  'git'
)

provides=("$_pkgname=${pkgver%%.r*}")
conflicts=("$_pkgname")

_pkgsrc="arcmenu"
source=("$_pkgsrc"::"git+$url.git")
sha256sums=('SKIP')

pkgver() {
  cd "$_pkgsrc"

  git describe --long --tags --abbrev=7 --exclude='*[a-zA-Z][a-zA-Z]*' \
    | sed -E 's/^[^0-9]*//;s/([^-]*-g)/r\1/;s/-/./g'
}

build() {
  cd "$_pkgsrc"

  make
}

package() {
  cd "$_pkgsrc"

  make DESTDIR="$pkgdir" install
}