summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 43e41ed68653ada67afc521d9d45e1aebc0368c2 (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
# Maintainer: Ilya Fedin <ilya-fedin@outlook.com>
pkgname=dhcpcd-ui-patched
_pkgname=dhcpcd-ui
pkgver=0.7.5
pkgrel=1
pkgdesc="dhcpcd Monitor in GTK+, patched with AppIndicator support"
url="http://roy.marples.name/projects/dhcpcd-ui"
license=("BSD")
depends=("gtk3" "libappindicator-gtk3" "libnotify" "dhcpcd-dbus>=0.6.0" "hicolor-icon-theme")
provides=('dhcpcd-ui')
conflicts=('dhcpcd-ui')
source=("http://roy.marples.name/downloads/dhcpcd/$_pkgname-$pkgver.tar.bz2"
        "add-appindicator-support.patch")
arch=(i686 x86_64)
md5sums=('ff937ffe2ffc2801488078a61bdbfd0d'
         'bc618c307d0d27ce7f9a12a2a2e077a4')

build() {
  cd $srcdir/$_pkgname-$pkgver
  patch -Np1 < "${srcdir}/add-appindicator-support.patch"
  ./configure --prefix=/usr --icondir=/usr/share/icons --with-gtk=gtk+-3.0 --without-qt
  make
}

package() {
  cd $srcdir/$_pkgname-$pkgver
  make DESTDIR="$pkgdir/" AUTOSTARTDIR=/etc/xdg/autostart install 

  install -d "$pkgdir/usr/share/licenses/$_pkgname"
  sed -n '1,/^$/p' src/dhcpcd-gtk/main.c \
	>"$pkgdir/usr/share/licenses/$_pkgname/license.txt"
}