summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlos Silva2015-10-18 04:15:19 +0100
committerCarlos Silva2015-10-18 04:15:19 +0100
commit04491b8985b6d5e80127ece18675185c195e3b56 (patch)
tree0e8eb575f200ed4f8e848b23c4f1f2d593cfacd0
downloadaur-04491b8985b6d5e80127ece18675185c195e3b56.tar.gz
Initial import
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD51
-rw-r--r--cartaodecidadao.install11
3 files changed, 84 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..27bf116f813
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = cartaodecidadao
+ pkgdesc = Portuguese Citizen Card Application
+ pkgver = 1.26.2
+ pkgrel = 1
+ url = http://www.cartaodecidadao.pt/
+ install = cartaodecidadao.install
+ arch = i686
+ arch = x86_64
+ license = custom
+ depends = qt4>=4.5.0
+ depends = pcsclite>=1.5.0
+ depends = openssl
+ depends = ccid
+ source = cartaodecidadao.install
+ md5sums = b716ba8fde53cef3376eedb1a6076cac
+ source_i686 = https://www.cartaodecidadao.pt/ccsoftware/cartaodecidadao-ubuntu-1.26.2-1414.i586.deb
+ md5sums_i686 = d70efc167675eba20ab8d6467c15374a
+ source_x86_64 = https://www.cartaodecidadao.pt/ccsoftware/cartaodecidadao-ubuntu-1.26.2-1414.x86_64.deb
+ md5sums_x86_64 = 06a8e7c60f38f739dd2469c705a48521
+
+pkgname = cartaodecidadao
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..3d936a87ab8
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,51 @@
+pkgname=cartaodecidadao
+pkgver=1.26.2
+pkgrel=1
+pkgdesc="Portuguese Citizen Card Application"
+arch=('i686' 'x86_64')
+url="http://www.cartaodecidadao.pt/"
+license=('custom')
+depends=('qt4>=4.5.0' 'pcsclite>=1.5.0' 'openssl' 'ccid')
+
+source=("cartaodecidadao.install")
+source_x86_64=("https://www.cartaodecidadao.pt/ccsoftware/cartaodecidadao-ubuntu-${pkgver}-1414.x86_64.deb")
+source_i686=("https://www.cartaodecidadao.pt/ccsoftware/cartaodecidadao-ubuntu-${pkgver}-1414.i586.deb")
+
+md5sums=("b716ba8fde53cef3376eedb1a6076cac")
+md5sums_x86_64=("06a8e7c60f38f739dd2469c705a48521")
+md5sums_i686=("d70efc167675eba20ab8d6467c15374a")
+
+install='cartaodecidadao.install'
+
+prepare() {
+ tar -zxf data.tar.gz
+}
+
+package() {
+ # Fix desktop files
+ sed -i -e "s|/local||g" ${srcdir}/usr/share/applications/*
+ sed -i -e "s|bin/images/app.png|share/pixmaps/cartaodecidadao.png|g" ${srcdir}/usr/share/applications/*
+
+ # Move binaries out of local
+ cp -r ${srcdir}/usr/local/* ${srcdir}/usr/
+ rm -r ${srcdir}/usr/local
+
+ # Move images to pixmaps
+ mkdir -p ${pkgdir}/usr/share/pixmaps/
+ mv ${srcdir}/usr/bin/images/app.png ${pkgdir}/usr/share/pixmaps/cartaodecidadao.png
+
+ # remove uneeeded stuff
+ rm -rf ${srcdir}/etc
+ rm ${srcdir}/usr/bin/arranque.sh
+ rm -rf ${srcdir}/usr/{local,}/bin/images
+
+ # Fix some filenames
+ mv "${srcdir}/usr/share/applications/Aplicação da Área da Notificação.desktop" "${srcdir}/usr/share/applications/areadenotificacao.desktop"
+ mv "${srcdir}/usr/share/applications/Cartão de Cidadão.desktop" "${srcdir}/usr/share/applications/cartaodecidadao.desktop"
+
+ # Add missing link to file
+ ln -sr ${srcdir}/usr/lib/libpteiddlg.so.1 ${srcdir}/usr/lib/libpteiddlg.so
+
+ # Move everything to install dir
+ cp -r ${srcdir}/usr* ${pkgdir}
+}
diff --git a/cartaodecidadao.install b/cartaodecidadao.install
new file mode 100644
index 00000000000..b1477143938
--- /dev/null
+++ b/cartaodecidadao.install
@@ -0,0 +1,11 @@
+post_install() {
+ gtk-update-icon-cache -f -q -t /usr/share/pixmaps
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}