summaryrefslogtreecommitdiff
path: root/community/signon-ui
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-11-29 02:32:15 -0800
committerroot <root@rshg054.dnsready.net>2012-11-29 02:32:15 -0800
commitfd13fc6dba397df448ce6ecf87e806fdc3a8f3cd (patch)
tree5635460ffbb1eefba5dd2d0af61c5c7eb08e9dbd /community/signon-ui
parent5c5e1e3a998a54db424b8261fac042ab41745d99 (diff)
Thu Nov 29 02:28:50 PST 2012
Diffstat (limited to 'community/signon-ui')
-rw-r--r--community/signon-ui/Makefile31
-rw-r--r--community/signon-ui/PKGBUILD13
2 files changed, 40 insertions, 4 deletions
diff --git a/community/signon-ui/Makefile b/community/signon-ui/Makefile
new file mode 100644
index 000000000..3ede78507
--- /dev/null
+++ b/community/signon-ui/Makefile
@@ -0,0 +1,31 @@
+# Add here the language codes for the translated .po files:
+LINGUAS =
+
+I18N_DOMAIN = signon-ui
+
+PO_FILES = $(addsuffix .po, $(LINGUAS))
+MO_FILES = $(addsuffix .mo, $(LINGUAS))
+
+DEL_FILE = rm -f
+INSTALL = /usr/bin/install -c -m 644
+MKDIR = mkdir -p
+
+all: $(MO_FILES)
+
+install: all
+ for lang in $(LINGUAS); do \
+ dir=$(INSTALL_ROOT)/usr/share/locale/$$lang/LC_MESSAGES; \
+ $(MKDIR) $$dir; \
+ $(INSTALL) $$lang.mo $$dir/$(I18N_DOMAIN).mo; \
+ done
+
+%.mo: %.po
+ msgfmt -o "$@" "$<"
+
+clean:
+ -$(DEL_FILE) $(MO_FILES)
+
+distclean: clean
+
+check: all
+
diff --git a/community/signon-ui/PKGBUILD b/community/signon-ui/PKGBUILD
index 7aad2158f..b11d87d7e 100644
--- a/community/signon-ui/PKGBUILD
+++ b/community/signon-ui/PKGBUILD
@@ -1,8 +1,8 @@
-# $Id: PKGBUILD 79493 2012-11-06 04:11:33Z bgyorgy $
+# $Id: PKGBUILD 80673 2012-11-29 00:36:04Z bgyorgy $
# Maintainer: Balló György <ballogyor+arch at gmail dot com>
pkgname=signon-ui
-pkgver=0.11
+pkgver=0.12
pkgrel=1
pkgdesc="UI component that responsible for handling the user interactions which can happen during the login process of an online account"
arch=('i686' 'x86_64')
@@ -10,8 +10,10 @@ url="https://launchpad.net/online-accounts-signon-ui"
license=('GPL')
depends=('libaccounts-qt' 'qtwebkit' 'libproxy')
makedepends=('signon' 'libnotify')
-source=(https://launchpad.net/online-accounts-signon-ui/12.10/$pkgver/+download/$pkgname-$pkgver.tar.bz2)
-md5sums=('b0359c61523f7b0df241bd3c21dbb2b2')
+source=(https://launchpad.net/online-accounts-signon-ui/13.04/$pkgver/+download/$pkgname-$pkgver.tar.bz2
+ Makefile)
+md5sums=('dca78c25d2d5303a1479403fec334e27'
+ 'c73ecd27c76a9060862512b7678ae4f1')
build() {
cd "$srcdir/$pkgname-$pkgver"
@@ -19,6 +21,9 @@ build() {
# Do not install tests
echo 'INSTALLS =' >>tests/unit/unit.pro
+ # Fix build
+ cp "$srcdir/Makefile" po/Makefile
+
qmake PREFIX=/usr LIBDIR=/usr/lib
make
}