PKGBUILD 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # Maintainer: Alexander Rosenberg <zanderpkg at pm dot me>
  2. pkgname=curator
  3. pkgver=1
  4. pkgrel=1
  5. pkgdesc="A program for uploading images to Art Museum"
  6. url="https://gitlab.com/zander671/curator"
  7. arch=('i686' 'x86_64')
  8. license=('GPL3')
  9. depends=('ffmpeg')
  10. makedepends=('gradle' 'git')
  11. source=("git+https://gitlab.com/zander671/curator.git")
  12. sha256sums=('SKIP')
  13. pkgver(){
  14. cd $pkgname
  15. git rev-list --count HEAD
  16. }
  17. build() {
  18. cd "$srcdir/$pkgname"
  19. gradle installDist
  20. }
  21. package() {
  22. cd "$srcdir/$pkgname"
  23. mkdir -p "$pkgdir/usr/share"
  24. cp -r build/install/curator "$pkgdir/usr/share/"
  25. mkdir -p "$pkgdir/usr/bin"
  26. ln -fs "/usr/share/curator/bin/curator" "$pkgdir/usr/bin/curator"
  27. install -m644 -D LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  28. install -m644 -D README.md "$pkgdir/usr/share/doc/$pkgname/README"
  29. install -m644 -D scripts/linux/curator.xpm "$pkgdir/usr/share/pixmaps/curator.xpm"
  30. install -m644 -D scripts/linux/curator.png "$pkgdir/usr/share/icons/hicolor/48x48/apps/curator.png"
  31. install -m644 -D scripts/linux/curator.svg "$pkgdir/usr/share/icons/hicolor/scalable/apps/curator.svg"
  32. install -m644 -D scripts/linux/curator.desktop "$pkgdir/usr/share/applications/curator.desktop"
  33. }