summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c1239c017211c83d8a519739fca99fc4005583b4 (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
# 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=3
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' appIcons.js 
  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: