yochananmarqos

hotshots-git

Apr 14th, 2021 (edited)
155
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. pkgname=hotshots-git
  2. pkgver=r19.e3712ae
  3. pkgrel=1
  4. pkgdesc="Screenshot and annotation software"
  5. arch=('x86_64')
  6. url="https://github.com/obiwankennedy/HotShots"
  7. license=('GPL2')
  8. depends=('qt5-x11extras' 'qt5-multimedia' 'shared-mime-info')
  9. makedepends=('git' 'qt5-tools')
  10. provides=("${pkgname%-git}")
  11. conflicts=("${pkgname%-git}")
  12. source=("${pkgname%-git}::git+https://github.com/obiwankennedy/HotShots.git")
  13. sha256sums=('SKIP')
  14.  
  15. pkgver() {
  16.     cd "${srcdir}/${pkgname%-git}"
  17.     printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  18. }
  19.  
  20. build() {
  21.     cd "${srcdir}/${pkgname%-git}"
  22.     qmake -recursive  HotShots.pro \
  23.         INSTALL_PREFIX=/usr \
  24.         INSTALL_LIBDIR=INSTALL_PREFIX/lib
  25.     make
  26. }
  27.  
  28. package() {
  29.     cd "${srcdir}/${pkgname%-git}"
  30.     make INSTALL_ROOT="$pkgdir" install
  31.  
  32.     install -Dm644 packaging/flatpak/HotShots.metainfo.xml \
  33.         "$pkgdir/usr/share/mime/packages/${pkgname%-git}.xml"
  34. }
RAW Paste Data