summaryrefslogtreecommitdiff
path: root/pcr/dianara
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-02-03 18:59:08 -0200
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-02-03 18:59:08 -0200
commit3f0f90769e94a810869ed33cfe0f30bff6334c50 (patch)
tree230a7669635045773788a212e291d40a8c82bb92 /pcr/dianara
parent7a778e8cdf604924dc9bafc47849e0594ae1f85c (diff)
parent964755f48fefde84fce71781d0744e2158f60814 (diff)
downloadabslibre-3f0f90769e94a810869ed33cfe0f30bff6334c50.tar.gz
abslibre-3f0f90769e94a810869ed33cfe0f30bff6334c50.tar.bz2
abslibre-3f0f90769e94a810869ed33cfe0f30bff6334c50.zip
Merge branch 'master' of ssh://projects.parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'pcr/dianara')
-rw-r--r--pcr/dianara/PKGBUILD51
-rw-r--r--pcr/dianara/dianara.install12
2 files changed, 63 insertions, 0 deletions
diff --git a/pcr/dianara/PKGBUILD b/pcr/dianara/PKGBUILD
new file mode 100644
index 000000000..2bca50c77
--- /dev/null
+++ b/pcr/dianara/PKGBUILD
@@ -0,0 +1,51 @@
+# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
+# Maintainer (AUR): speps <speps@aur.archlinux.org>
+
+pkgname=dianara
+pkgver=1.1
+pkgrel=1
+pkgdesc="A Qt pump.io client"
+arch=(i686 x86_64)
+url="http://dianara.nongnu.org/"
+license=('GPL')
+depends=('qjson' 'qoauth' 'qca-ossl')
+install="$pkgname.install"
+source=("http://download-mirror.savannah.gnu.org/releases/$pkgname/$pkgname-v$pkgver.tar.gz")
+md5sums=('6a7561f75679e7cec767fc6fbd396610')
+
+build() {
+ cd $pkgname-v$pkgver
+ [ -d bld ] || mkdir bld && cd bld
+ qmake-qt4 ..
+ make
+}
+
+package() {
+ cd $pkgname-v$pkgver
+
+ # bin
+ install -Dm755 bld/$pkgname \
+ "$pkgdir/usr/bin/$pkgname"
+
+ # desktop file
+ install -Dm644 $pkgname.desktop \
+ "$pkgdir/usr/share/applications/$pkgname.desktop"
+
+ # icons
+ install -Dm644 icon/32x32/$pkgname.png \
+ "$pkgdir/usr/share/icons/hicolor/32x32/apps/$pkgname.png"
+ install -Dm644 icon/64x64/$pkgname.png \
+ "$pkgdir/usr/share/icons/hicolor/64x64/apps/$pkgname.png"
+
+ # translations
+ install -d "$pkgdir/usr/share/locale"
+ install -Dm644 translations/*.qm \
+ "$pkgdir/usr/share/locale"
+
+ # man (why 7?)
+ install -d "$pkgdir/usr/share/man/man1"
+ sed '1s/"7"/"1"/' manual/$pkgname.7 > \
+ "$pkgdir/usr/share/man/man1/$pkgname.1"
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/pcr/dianara/dianara.install b/pcr/dianara/dianara.install
new file mode 100644
index 000000000..029294d67
--- /dev/null
+++ b/pcr/dianara/dianara.install
@@ -0,0 +1,12 @@
+post_install() {
+ xdg-icon-resource forceupdate --theme hicolor 2> /dev/null
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}