diff options
author | Martin T. H. Sandsmark | 2021-01-25 23:29:09 +0100 |
---|---|---|
committer | Martin T. H. Sandsmark | 2021-01-25 23:29:25 +0100 |
commit | 369027c27db2358bb5f215644028df0df579cea3 (patch) | |
tree | 5ac78ed859f4c9a8f84b14acb5e2cb1744594490 | |
parent | 83fb84554626843f41c7dedc90d95767fb198f6d (diff) | |
download | aur-sandsmark-screenshot-git.tar.gz |
cmake build
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 14 |
2 files changed, 10 insertions, 7 deletions
@@ -1,11 +1,12 @@ pkgbase = sandsmark-screenshot-git pkgdesc = Trivial application to take screenshots and put them on the clipboard - pkgver = 5.e2fc792 + pkgver = 8.b0ce35a pkgrel = 1 url = https://github.com/sandsmark/sandsmark-screenshot arch = x86_64 license = GPL makedepends = git + makedepends = cmake depends = qt5-base provides = sandsmark-screenshot conflicts = sandsmark-screenshot @@ -1,14 +1,14 @@ # Maintainer: Martin Sandsmark <martin.sandsmark@kde.org> pkgname=sandsmark-screenshot-git -pkgver=5.e2fc792 +pkgver=8.b0ce35a pkgrel=1 pkgdesc="Trivial application to take screenshots and put them on the clipboard" arch=('x86_64') url='https://github.com/sandsmark/sandsmark-screenshot' license=('GPL') depends=( 'qt5-base') -makedepends=('git') +makedepends=('git' 'cmake') provides=('sandsmark-screenshot') conflicts=('sandsmark-screenshot') source=('git+https://github.com/sandsmark/sandsmark-screenshot.git') @@ -21,14 +21,16 @@ pkgver() { prepare() { mkdir -p build - cd build - qmake ../sandsmark-screenshot } build() { - make -C build + cd build + cmake ../sandsmark-screenshot \ + -DCMAKE_INSTALL_PREFIX=/usr + make } package() { - install -Dm755 build/screenshot "${pkgdir}/usr/bin/screenshot" + cd build + make DESTDIR="$pkgdir" install } |