Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/PKGBUILD b/PKGBUILD
- index 5bd4896..9ee7ed4 100644
- --- a/PKGBUILD
- +++ b/PKGBUILD
- @@ -1,30 +1,39 @@
- pkgname=qtnote
- -pkgver=3.0.5
- +pkgver=3.2.0.3.g3a48989
- pkgrel=1
- pkgdesc="Note-taking application written with Qt in mind"
- arch=('i686' 'x86_64')
- url="http://ri0n.github.io/QtNote"
- license=('GPL3')
- depends=( 'qt5-base' 'qt5-tools' 'hunspell'
- - 'kglobalaccel' 'kwindowsystem'
- - 'knotifications')
- -makedepends=('tar')
- + 'kglobalaccel5' 'kwindowsystem5'
- + 'knotifications5')
- +makedepends=('git' 'cmake')
- conflicts=(qtnote-git)
- -source=(https://github.com/Ri0n/QtNote/archive/$pkgver.tar.gz)
- -md5sums=('4e119a4ee9bf9b4520f3a5b6a64ed1b9')
- +source=("$pkgname"::"git+https://github.com/Ri0n/QtNote.git")
- +sha256sums=('SKIP')
- -_srcdirname=QtNote
- +pkgver() {
- + cd "$srcdir/$pkgname"
- + # Use the tag of the last commit
- + git describe --long --tags | sed 's/^v//;s/-/./g'
- +}
- +
- +prepare() {
- + cd "$srcdir/$pkgname"
- + git submodule init
- + git submodule update
- +}
- build() {
- - cd "$srcdir"
- # BUILD HERE
- - cd "$srcdir/$_srcdirname-$pkgver"
- - qmake CONFIG+=noubuntu PREFIX="/usr" \
- - LIBDIR="/usr/lib" $pkgname.pro
- - make
- + cmake_flags="-DCMAKE_INSTALL_PREFIX=/usr"
- + mkdir -p $srcdir/$pkgname/build && cd $srcdir/$pkgname/build
- + cmake ${cmake_flags} ..
- + cmake --build . --target all
- }
- package() {
- - cd "$srcdir/$_srcdirname-$pkgver"
- - make INSTALL_ROOT="$pkgdir/" install
- + cd "$srcdir/$pkgname/build"
- + make DESTDIR="$pkgdir" install
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement