summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5c8059e640afab5e28a3e62cf53f404f643e8269 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Maintainer: Rouven Himmelstein <rouvenhimmelstein@gmail.com>

_gitname=chwp
_cmdname=chwp
pkgname=${_gitname}-git
pkgver=0.0.21
pkgrel=1
pkgdesc="Changes the background wallpaper and lockscreen from the command line."
arch=('x86_64')
url="https://gitlab.com/rouvenhimmelstein/chwp"
license=('GPL3')
depends=('qt5-base')
makedepends=('git' 'cmake' 'qt5-base')
provides=('chwp')
conflicts=('chwp')
source=("https://gitlab.com/rouvenhimmelstein/chwp/-/archive/${pkgver}/${_gitname}-${pkgver}.tar.gz")
sha1sums=('SKIP')

prepare() {
    mkdir -p $srcdir/$_gitname-${pkgver}/cmake-build-release
}


build() {
    cd $srcdir/$_gitname-${pkgver}/cmake-build-release
    cmake .. -DCMAKE_BUILD_TYPE=Release
    make
}

package() {
    cd $srcdir/$_gitname-${pkgver}/cmake-build-release
    make DESTDIR="$pkgdir" install

    cd ${srcdir}/${_gitname}-${pkgver}
    install -D -m755 ${_cmdname}.1 ${pkgdir}/usr/share/man/man1/${_cmdname}.1
}