summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a6bcbcd5e7093a5e2270cae7202af7dabff72491 (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
# Maintainer: Jonathon Fernyhough <jonathon_at_manjaro dot+org>

pkgname=birdtray-git
pkgver=latest
pkgrel=1
pkgdesc="Run Thunderbird with a system tray icon."
arch=('i686' 'x86_64' 'armv7h' 'armv6h' 'aarch64')
url="https://github.com/gyunaev/birdtray"
license=('GPL')
depends=(qt5-base sqlite3)
makedepends=(git)
conflicts=(${pkgname/-git/})
provides=(${pkgname/-git/})
source=("git+https://github.com/gyunaev/${pkgname/-git/}.git")
sha1sums=(SKIP)

pkgver() {
  git -C ${pkgname/-git/} describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  mkdir -p build && cd build
  qmake-qt5 ../${pkgname/-git/}/src
  make
}

package() {
  cd build

  install -d "$pkgdir"/usr/bin
  install -d "$pkgdir"/usr/lib/birdtray
  install -d "$pkgdir"/usr/include/birdtray

  install birdtray "$pkgdir"/usr/bin/birdtray
  install -m644 *.o "$pkgdir"/usr/lib/birdtray/
  install -m644 *.h "$pkgdir"/usr/include/birdtray/
}