summaryrefslogtreecommitdiff
path: root/pcr/pumpa/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/pumpa/PKGBUILD')
-rw-r--r--pcr/pumpa/PKGBUILD99
1 files changed, 23 insertions, 76 deletions
diff --git a/pcr/pumpa/PKGBUILD b/pcr/pumpa/PKGBUILD
index 4b7bac970..e6f6fd6fa 100644
--- a/pcr/pumpa/PKGBUILD
+++ b/pcr/pumpa/PKGBUILD
@@ -1,84 +1,31 @@
-# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
-# Maintainer (AUR): speps <speps dot aur dot archlinux dot org>
-
-pkgbase=pumpa
-pkgname=(pumpa-qt4 pumpa-qt5 pumpa-l10n)
-pkgver=0.9
-pkgdesc="A simple pump.io client"
-url="http://sjoberg.fi/software/pumpa.html"
+# Maintainer (Arch): Eugenio M. Vigo <emvigo@gmail.com>
+# Contributor (Arch): speps <speps dot aur dot archlinux dot org>
+# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
+
+pkgname=pumpa
+pkgver=0.9.1
+pkgrel=3
+pkgdesc="A simple pump.io client written in C++ and Qt"
+arch=('i686' 'x86_64')
+url="http://pumpa.branchable.com"
license=('GPL3')
+depends=('qt5-base' 'aspell' 'hicolor-icon-theme' 'tidyhtml')
+install="$pkgname.install"
+source=("https://saz.im/software/downloads/pumpa/pumpa-${pkgver}.tar.gz")
+sha256sums=("c45c7eb3fad527d59ecc9b25a6b29d80c0231d3e733556de23665873a803daa2")
-pkgrel=1
-arch=('i686' 'x86_64' 'mips64el')
-makedepends=('aspell' 'qjson' 'qt5-base' 'tidyhtml')
-source=("http://gitorious.org/pumpa/pumpa/archive/v$pkgver.tar.gz")
-md5sums=('f1d9bd4ec75f5e525779c1dc54123c5b')
-
-prepare() {
- cd $pkgbase-$pkgbase
-
- # icon path fix
- sed -i 's|/.*/||' $pkgbase.desktop
-}
+# A small comentary on the source URL. I'm avoiding using the git tags from
+# pumpa.branchable.com because it would imply much more work (cloning the repo
+# specifying the tag, etc.). The source URL points to the personal server of the
+# main developer of Pumpa, "Sazius".
build() {
- cd "$srcdir"/$pkgbase-$pkgbase
- mkdir build-pumpa-qt4
- cd build-pumpa-qt4
- qmake-qt4 ..
+ cd $pkgname-$pkgver
+ qmake PREFIX=/usr
make
-
- cd "$srcdir"/$pkgbase-$pkgbase
- mkdir build-pumpa-qt5
- cd build-pumpa-qt5
- qmake ..
- make
-}
-
-package_pumpa-qt4() {
- pkgdesc+=" (Qt4)"
- depends+=('pumpa-l10n' 'aspell' 'tidyhtml' 'qjson')
- install="$pkgbase.install"
- _package_common Qt4
}
-package_pumpa-qt5() {
- pkgdesc+=" (Qt5)"
- depends=('pumpa-l10n' 'aspell' 'tidyhtml' 'qt5-base')
- install="$pkgbase.install"
- _package_common Qt5
-}
-
-package_pumpa-l10n() {
- pkgdesc+=" (localizations)"
-
- cd $pkgbase-$pkgbase
- install -d "$pkgdir/usr/share/locale"
- install -Dm644 translations/*.qm \
- "$pkgdir/usr/share/locale"
-}
-
-_package_common() {
- local toolkit=$1
- cd $pkgbase-$pkgbase
-
- # bin
- install -Dm755 build-$pkgname/$pkgbase \
- "$pkgdir/usr/bin/$pkgname"
-
- # icon
- install -Dm644 images/$pkgbase.png \
- "$pkgdir/usr/share/pixmaps/$pkgname.png"
-
- # desktop file
- install -d "$pkgdir/usr/share/applications"
- sed -e "s|$pkgbase|$pkgname|" -e "s|Pumpa|& ($toolkit)|" \
- < $pkgbase.desktop \
- > "$pkgdir/usr/share/applications/$pkgname.desktop"
-
- # man page
- install -d "$pkgdir/usr/share/man/man1"
- sed -e "s|$pkgbase|$pkgname|" -e "s|${pkgbase^^}|${pkgname^^}|" \
- < docs/$pkgbase.1 \
- > "$pkgdir/usr/share/man/man1/$pkgname.1"
+package() {
+ cd $pkgname-$pkgver
+ make INSTALL_ROOT="$pkgdir/" install
}