# Maintainer: Alexander Rosenberg pkgname=quick-text-bar pkgver=1.0.0 pkgrel=1 pkgdesc='A fast and customizable text based bar.' arch=('x86_64') license=('GPL3') depends=('glib2' 'optimus-manager' 'bluez' 'networkmanager' 'dbus' 'pulseaudio') makedepends=('cmake' 'git') url='https://gitlab.com/Zander671/quick-text-bar.git' source=("git+https://gitlab.com/Zander671/quick-text-bar.git" 'config.h' 'config.cmake') sha256sums=('SKIP' 'SKIP' 'SKIP') pkgver(){ cd "$pkgname" git rev-list --count HEAD } build() { cp config.h config.cmake "$pkgname" cmake -B build -S "$pkgname" cmake --build build } package() { install --mode 0644 -D --target-directory "$pkgdir/usr/share/licenses/$pkgname" "$pkgname/LICENSE" install --mode 0644 -D --target-directory "$pkgdir/usr/share/doc/$pkgname" "$pkgname/README.md" install --mode 0644 -D --target-directory "$pkgdir/usr/share/man/man1" "build/quick-text-bar.1" install --mode 0755 -D --target-directory "$pkgdir/usr/bin" "build/quick-text-bar" }