blob: fbb45a43eff7f7b9d23fa33d49b56cd664dad073 (
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
|
# Maintainer: Nitin Bhat <nitinbhat972@gmail.com>
pkgname=cwal-git
_pkgname=cwal
pkgver=0.9.0
pkgrel=1
pkgdesc="Blazing-fast pywal-like color palette generator written in C."
arch=('x86_64')
url="https://github.com/nitinbhat972/cwal"
license=('GPL3')
depends=('imagemagick' 'libimagequant' 'luajit')
makedepends=('cmake' 'git' 'pkgconf')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=("git+${url}.git#branch=main")
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/$_pkgname"
git describe --long --tags --abbrev=7 |
sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "${srcdir}/${_pkgname}" || exit 1
cmake -B build
cmake --build build
}
package() {
cd "${srcdir}/${_pkgname}" || exit 1
DESTDIR="${pkgdir}" cmake --install build
}
|