PKGBUILD 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # Maintainer: CYBERDEViL <cyberdev [at] disroot [dot] org>
  2. pkgname=searx-qt-git
  3. pkgver=r311.d8ebdb5
  4. pkgrel=1
  5. pkgdesc="Desktop client application for Searx/SearXNG/searx-space"
  6. arch=('any')
  7. url="https://notabug.org/CYBERDEViL/searx-qt"
  8. license=('GPL3')
  9. depends=('python-requests' 'python-pyqt5' 'python-jsonschema'
  10. 'python-beautifulsoup4')
  11. optdepends=('python-pysocks: socks proxy support')
  12. makedepends=('gettext' 'qt5-tools' 'python-build' 'python-installer'
  13. 'python-wheel' 'python-setuptools')
  14. provides=('searx-qt')
  15. conflicts=('searx-qt')
  16. source=("${pkgname}::git+$url#branch=master")
  17. sha256sums=('SKIP')
  18. pkgver() {
  19. cd "$pkgname"
  20. printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
  21. }
  22. prepare() {
  23. cd ${srcdir}
  24. sed -i "s/__git__ = '.*'/__git__ = '$(pkgver)'/g" ${pkgname}/searxqt/version.py
  25. sed -i "s/Version=.*/Version=$(pkgver)/g" ${pkgname}/share/searx-qt.desktop
  26. }
  27. build() {
  28. cd "$srcdir/$pkgname"
  29. make
  30. }
  31. package() {
  32. cd "$srcdir/$pkgname"
  33. make DESTDIR="$pkgdir" install
  34. }