summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f2b69e872f977f2708c766bd9e0ff3af7f712923 (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
# Maintainer: drakkan <nicola dot murino at gmail dot com>
# Contributor: XZS <d dot f dot fischer at web dot de>
# Contributor: Carl George < arch at cgtx dot us >
# Contributor: Janne Haapsaari <haaja@iki.fi>
# Contributor: Christopher Krooß <didi2002 at web.de>

pkgname=gnome-shell-extension-dash-to-dock
_pkgname=dash-to-dock
pkgver=72+1+gb695cee
pkgrel=2
pkgdesc="Move the dash out of the overview transforming it in a dock"
arch=('any')
url="https://micheleg.github.io/dash-to-dock/"
license=('GPL')
depends=('gnome-shell')
makedepends=('intltool' 'gettext' 'git' 'sassc')
_commit=b695cee218444eb733372903b02a5966e0318c79
source=("git+https://github.com/micheleg/dash-to-dock.git#commit=$_commit")
sha256sums=('SKIP')

pkgver() {
  cd "${srcdir}"/${_pkgname}
  #git describe --tags | sed 's/^extensions\.gnome\.org-v//g' | sed 's/-/+/g'
  git describe --tags | sed 's/^extensions\.gnome\.org-v//g' | sed 's/-/+/g' | sed 's/ubuntu+dock+//g' | sed 's/_ubuntu2//g'
}

build() {
  cd "${srcdir}"/${_pkgname}
  make
}

package() {
  cd "${srcdir}"/${_pkgname}
  sed -i 's/ubuntu-dock@ubuntu\.com/dash-to-dock@micxgx\.gmail\.com/g' Makefile 
  sed -i 's/ubuntu-dock@ubuntu\.com/dash-to-dock@micxgx\.gmail\.com/g' metadata.json
  sed -i 's/Ubuntu Dock/Dash to Dock/g' metadata.json
  sed -i 's/^"version": 71/"version": 72/g' metadata.json
  make DESTDIR="${pkgdir}" VERSION="${pkgver}" install
}

# vim:set ts=2 sw=2 et: