summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2817b315e992868c453c8dee1234714b608a4aaf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Maintainer: Andrew Sun <adsun701 at gmail dot com>
# Contributor: Iván Ruvalcaba <mario.i.ruvalcaba[at]gmail[dot]com>
# Contributor: Eugenio M. Vigo <emvigo at gmail dot com>
# Contributor: speps <speps at aur dot archlinux dot org>

pkgname=dianara
pkgver=1.4.4
pkgrel=1
pkgdesc="A Qt pump.io client"
arch=('i686' 'x86_64')
url="https://dianara.nongnu.org/"
license=('GPL')
depends=('hicolor-icon-theme' 'file' 'qt5-base' 'qoauth')
source=("https://download-mirror.savannah.gnu.org/releases/${pkgname}/${pkgname}-v${pkgver}.tar.gz")
sha256sums=('82bdfbaf2b057ca8cda3016c964d012bc18eb71333a2f474bd5f37446fd5ed77')

build() {
  cd "${srcdir}/${pkgname}-v${pkgver}"
  qmake Dianara.pro
  make
}

package() {
  cd "${srcdir}/${pkgname}-v${pkgver}"

  make INSTALL_ROOT="${pkgdir}" install

  # Desktop file
  install -Dm644 org.nongnu.dianara.desktop \
    "${pkgdir}/usr/share/applications/dianara.desktop"

  # Icons
  install -Dm644 icon/32x32/dianara.png \
    "${pkgdir}/usr/share/icons/hicolor/32x32/apps/dianara.png"
  install -Dm644 icon/64x64/dianara.png \
    "${pkgdir}/usr/share/icons/hicolor/64x64/apps/dianara.png"

  # Translations
  install -d "${pkgdir}/usr/share/${pkgname}/translations"
  install -Dm644 translations/* \
    "${pkgdir}/usr/share/${pkgname}/translations"

  # Doc files
  install -Dm644 BUGS \
    "${pkgdir}/usr/share/doc/${pkgname}/BUGS"
  install -Dm644 CHANGELOG \
    "${pkgdir}/usr/share/doc/${pkgname}/CHANGELOG"
  install -Dm644 INSTALL \
    "${pkgdir}/usr/share/doc/${pkgname}/INSTALL"
  install -Dm644 README \
    "${pkgdir}/usr/share/doc/${pkgname}/README"
  install -Dm644 TODO \
    "${pkgdir}/usr/share/doc/${pkgname}/TODO"
  install -Dm644 TRANSLATING \
    "${pkgdir}/usr/share/doc/${pkgname}/TRANSLATING"

  # Man files
  install -Dm644 manual/dianara.1 \
    "${pkgdir}/usr/share/man/man1/dianara.1"

  # License
  install -Dm644 LICENSE \
    "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

# vim:set ts=2 sw=2 cc=80 et: