summaryrefslogtreecommitdiff
path: root/community/girara/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
committerroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
commit8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch)
tree03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/girara/PKGBUILD
parente445a313723389ba9ee1fded025c567dae5b21ea (diff)
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/girara/PKGBUILD')
-rw-r--r--community/girara/PKGBUILD81
1 files changed, 81 insertions, 0 deletions
diff --git a/community/girara/PKGBUILD b/community/girara/PKGBUILD
new file mode 100644
index 000000000..65ac95c0e
--- /dev/null
+++ b/community/girara/PKGBUILD
@@ -0,0 +1,81 @@
+# $Id: PKGBUILD 90573 2013-05-13 09:52:42Z spupykin $
+# 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.6
+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=('1f213274fc710a5f9693d0d61f9ea66d')
+
+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"
+}