summaryrefslogtreecommitdiff
path: root/community-testing/girara/PKGBUILD
blob: f9973b8c10024328a3f6df23d799c390e1b74c03 (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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# $Id: PKGBUILD 75776 2012-08-31 00:57:20Z dwallace $
# Maintainer: Daniel Wallace <danielwallace at gtmanfred dot com>
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: mlq <mlq@pwmt.org>

pkgbase=girara
pkgname=(girara-common girara-gtk2 girara-gtk3)
pkgver=0.1.4
pkgrel=1
pkgdesc="user interface library"
arch=('i686' 'x86_64')
url="http://pwmt.org/projects/girara"
license=('custom')
makedepends=('gtk3' 'gtk2')
source=(http://pwmt.org/projects/girara/download/girara-$pkgver.tar.gz)
md5sums=('f348fbe96ceda4a89142cec92de08d25')

build() {
  true
}

package_girara-common() {
  depends=()
  pkgdesc="user interface library - common files"

  cd "$srcdir/girara-$pkgver"

  make clean

  # install header
  make DESTDIR="$pkgdir/" install-headers

  # install language files
  make DESTDIR="$pkgdir/" -C po install

  # remove pkgconfig files
  rm -r $pkgdir/usr/lib/pkgconfig

  # install license
  install -D -m664 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

package_girara-gtk2() {
  depends=('gtk2' 'girara-common')
  provides=('girara')

  cd "$srcdir/girara-$pkgver"

  make clean
  make GIRARA_GTK_VERSION=2

  # install files
  make GIRARA_GTK_VERSION=2 DESTDIR="$pkgdir/" install

  # remove common files
  rm -r "$pkgdir/usr/include"
  rm -r "$pkgdir/usr/share"

  # install license
  install -D -m664 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

package_girara-gtk3() {
  depends=('gtk3' 'girara-common')
  provides=('girara')

  cd "$srcdir/girara-$pkgver"

  make clean
  make GIRARA_GTK_VERSION=3

  # install files
  make GIRARA_GTK_VERSION=3 DESTDIR="$pkgdir/" install

  # remove common files
  rm -r "$pkgdir/usr/include"
  rm -r "$pkgdir/usr/share"

  # install license
  install -D -m664 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}