PKGBUILD 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. # Maintainer: Alexander Rosenberg <zanderpkg at pm dot me>
  2. pkgname=practice-timer
  3. pkgver=1
  4. pkgrel=1
  5. pkgdesc="Track and analyze statistics about how long you do various activities"
  6. url="https://gitlab.com/zander671/practice-timer"
  7. arch=('x86_64')
  8. license=('GPL3')
  9. depends=('gtk3')
  10. makedepends=('cmake' 'make' 'git')
  11. optdepends=('plotutils: graphs in the statistics window')
  12. source=("git+https://gitlab.com/zander671/practice-timer.git")
  13. sha256sums=('SKIP')
  14. pkgver(){
  15. cd "$pkgname"
  16. git rev-list --count HEAD
  17. }
  18. build() {
  19. cd "$pkgname"
  20. cmake -B build
  21. make -C build
  22. }
  23. package() {
  24. cd "$pkgname"
  25. install -m755 -D build/Practice_Timer "$pkgdir/usr/bin/practice-timer"
  26. install -m644 -D LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  27. install -m644 -D README.md "$pkgdir/usr/share/doc/$pkgname/README"
  28. install -m644 -D tools/linux/practice-timer.xpm "$pkgdir/usr/share/pixmaps/practice-timer.xpm"
  29. install -m644 -D tools/linux/practice-timer.png "$pkgdir/usr/share/icons/hicolor/48x48/apps/practice-timer.png"
  30. install -m644 -D tools/linux/practice-timer.svg "$pkgdir/usr/share/icons/hicolor/scalable/apps/practice-timer.svg"
  31. install -m644 -D tools/linux/practice-timer.desktop "$pkgdir/usr/share/applications/practice-timer.desktop"
  32. }