summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD32
1 files changed, 15 insertions, 17 deletions
diff --git a/PKGBUILD b/PKGBUILD
index ce5bce712bb6..6088c7719a97 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,37 +1,35 @@
# Maintainer: Jonathon Fernyhough <jonathon_at_manjaro dot+org>
+# Contributor: Kr1ss <kr1ss.x#yandex#com>
-pkgname=birdtray-git
+_pkgbase=birdtray
+pkgname=$_pkgbase-git
pkgver=latest
-pkgrel=2
+pkgrel=3
pkgdesc="Run Thunderbird with a system tray icon."
arch=('i686' 'x86_64' 'armv7h' 'armv6h' 'aarch64')
url="https://github.com/gyunaev/birdtray"
-license=('GPL')
+license=('GPL-3.0')
depends=(qt5-base sqlite3)
-makedepends=(git)
-conflicts=(${pkgname/-git/})
-provides=(${pkgname/-git/})
-source=("git+https://github.com/gyunaev/${pkgname/-git/}.git")
+makedepends=(cmake git qt5-tools)
+conflicts=($_pkgbase)
+provides=($_pkgbase)
+source=("git+$url.git")
sha1sums=(SKIP)
pkgver() {
- git -C ${pkgname/-git/} describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^RELEASE_//g'
+ git -C $_pkgbase describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^RELEASE_//g'
}
build() {
mkdir -p build && cd build
- qmake-qt5 ../${pkgname/-git/}/src
+ cmake ../$_pkgbase \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release
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/
+ make DESTDIR="$pkgdir" install
+ install -Dm644 ../$_pkgbase/README.md -t"$pkgdir/usr/share/doc/$_pkgbase/"
}