summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1002b258bc1030494b8c43312b41da52cc30991b (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Contributor: Marcell Meszaros < marcell.meszaros AT runbox.eu >
# Contributor: Felix Golatofski <contact@xdfr.de>
# Contributor: Kaizhao Zhang <zhangkaizhao@gmail.com>

pkgname=budgie-indicator-applet
pkgver=0.7.2.r2.g15fac7e
_commit=15fac7ed13a2481583c26b541d1bb9456b996764
pkgrel=1
pkgdesc="Application Indicator Applet for the budgie-desktop"
url='https://github.com/UbuntuBudgie/budgie-indicator-applet'
arch=('i686' 'x86_64')
license=('GPL-3.0-only')
depends=(
  'atk'
  'ayatana-ido'
  'budgie-desktop'
  'gdk-pixbuf2'
  'glib2'
  'glibc'
  'gtk3'
  'libayatana-indicator'
  'libpeas'
)
makedepends=(
  'git'
)
source=("git+${url}.git#commit=${_commit}")
b2sums=('SKIP')

prepare() {
  cd "${srcdir}/${pkgname}"

  echo "Adding LDFLAGS vaues to CLFLAGS to respect LTO, relro, as-needed etc. configs."
  export CFLAGS+=" ${LDFLAGS}"

  ./autogen.sh \
    --libdir=/usr/lib \
    --prefix=/usr \
    --sharedstatedir=/var \
    --sharedstatedir=/var/lib \
    --sysconfdir=/etc \
    --with-ayatana-indicators

  echo "Adding LTO and '--as-needed' params to libtool."
  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
}

pkgver() {
  cd "${srcdir}/${pkgname}"
  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

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

package() {
  cd "${srcdir}/${pkgname}"
  make DESTDIR="${pkgdir}" install
}