Advertisement
KukuRuzo

qtnote pkgbuild git

May 2nd, 2024
1,043
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.54 KB | None | 0 0
  1. diff --git a/PKGBUILD b/PKGBUILD
  2. index 5bd4896..9ee7ed4 100644
  3. --- a/PKGBUILD
  4. +++ b/PKGBUILD
  5. @@ -1,30 +1,39 @@
  6.  pkgname=qtnote
  7. -pkgver=3.0.5
  8. +pkgver=3.2.0.3.g3a48989
  9.  pkgrel=1
  10.  pkgdesc="Note-taking application written with Qt in mind"
  11.  arch=('i686' 'x86_64')
  12.  url="http://ri0n.github.io/QtNote"
  13.  license=('GPL3')
  14.  depends=( 'qt5-base' 'qt5-tools' 'hunspell'
  15. -          'kglobalaccel' 'kwindowsystem'
  16. -          'knotifications')
  17. -makedepends=('tar')
  18. +          'kglobalaccel5' 'kwindowsystem5'
  19. +          'knotifications5')
  20. +makedepends=('git' 'cmake')
  21.  conflicts=(qtnote-git)
  22. -source=(https://github.com/Ri0n/QtNote/archive/$pkgver.tar.gz)
  23. -md5sums=('4e119a4ee9bf9b4520f3a5b6a64ed1b9')
  24. +source=("$pkgname"::"git+https://github.com/Ri0n/QtNote.git")
  25. +sha256sums=('SKIP')
  26.  
  27. -_srcdirname=QtNote
  28. +pkgver() {
  29. +  cd "$srcdir/$pkgname"
  30. +  # Use the tag of the last commit
  31. +  git describe --long --tags | sed 's/^v//;s/-/./g'
  32. +}
  33. +
  34. +prepare() {
  35. +    cd "$srcdir/$pkgname"
  36. +    git submodule init
  37. +    git submodule update
  38. +}
  39.  
  40.  build() {
  41. -  cd "$srcdir"
  42.    # BUILD HERE
  43. -  cd "$srcdir/$_srcdirname-$pkgver"
  44. -  qmake CONFIG+=noubuntu PREFIX="/usr" \
  45. -        LIBDIR="/usr/lib" $pkgname.pro
  46. -  make
  47. +  cmake_flags="-DCMAKE_INSTALL_PREFIX=/usr"
  48. +  mkdir -p $srcdir/$pkgname/build && cd $srcdir/$pkgname/build
  49. +  cmake ${cmake_flags} ..
  50. +  cmake --build . --target all
  51.  }
  52.  
  53.  package() {
  54. -  cd "$srcdir/$_srcdirname-$pkgver"
  55. -  make INSTALL_ROOT="$pkgdir/"  install
  56. +  cd "$srcdir/$pkgname/build"
  57. +  make DESTDIR="$pkgdir"  install
  58.  }
  59.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement