PKGBUILD 1.22 KB
Newer Older
1 2 3
# Contributor: speps <speps dot aur dot archlinux dot org>

pkgname=pumpa
gnastyle's avatar
gnastyle committed
4
pkgver=0.9.2
5 6
pkgrel=1
pkgdesc="A simple pump.io client written in C++ and Qt"
Francesco Marinucci's avatar
Francesco Marinucci committed
7
arch=('x86_64')
gnastyle's avatar
gnastyle committed
8
url="https://pumpa.branchable.com/"
9
license=('GPL3')
gnastyle's avatar
gnastyle committed
10
depends=('qt5-base' 'qjson' 'tidyhtml' 'aspell')
11
install="$pkgname.install"
gnastyle's avatar
gnastyle committed
12 13
source=("https://saz.im/software/downloads/pumpa/pumpa-${pkgver}.tar.xz")
sha256sums=('3ff51a0dc8a966e06d3472b0424c86980c34fc18fede3c59a442d95505922315')
14

gnastyle's avatar
gnastyle committed
15 16 17 18
# 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".
19 20

build() {
gnastyle's avatar
gnastyle committed
21 22
  cd $pkgname-$pkgver
  qmake-qt5 PREFIX=/usr
23 24 25 26
  make
}

package() {
gnastyle's avatar
gnastyle committed
27 28
  cd "$srcdir/$pkgname-$pkgver"
  
gnastyle's avatar
gnastyle committed
29
  make INSTALL_ROOT="$pkgdir/" install
30 31 32 33 34 35 36 37 38
  # bin
  install -Dm755 $pkgname \
    "$pkgdir/usr/bin/$pkgname"

  # desktop file
  install -Dm644 $pkgname.desktop \
    "$pkgdir/usr/share/applications/$pkgname.desktop"

  # icon
gnastyle's avatar
gnastyle committed
39
  install -Dm644 icons/512x512/$pkgname.png \
40
    "$pkgdir/usr/share/pixmaps/$pkgname.png"
gnastyle's avatar
gnastyle committed
41 42 43 44
    
  # man
  install -Dm644 docs/$pkgname.1 \
    "$pkgdir/usr/share/man/man1/$pkgname.1.gz"
45
}