blob: d687d6285f1024143b775cc882583ebce5f7e02d (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Maintainer: Sefa Eyeoglu <contact@scrumplex.net>
pkgbase=vibrant
pkgname=(libvibrant vibrant-cli)
pkgver=1.0.0
pkgrel=2
pkgdesc="A simple library to adjust color saturation of X11 outputs."
arch=(x86_64)
url="https://gitlab.com/Scrumplex/vibrant"
license=("GPL3" "custom:MIT")
makedepends=("git" "cmake")
source=("${pkgbase}::git+https://gitlab.com/Scrumplex/vibrant.git#tag=${pkgver}")
sha512sums=('SKIP')
build() {
cmake -B build -S "$pkgbase" \
-DCMAKE_BUILD_TYPE='Release' \
-DCMAKE_INSTALL_PREFIX='/usr' \
-Wno-dev
make -C build
}
package_libvibrant() {
provides=("libvibrant.so=1-64" "libvibrant.so=1")
conflicts=("vibrant")
depends=("libxrandr" "libxnvctrl")
cd "build"
env DESTDIR="$pkgdir" cmake -DCOMPONENT=lib -P cmake_install.cmake
cd "../$pkgbase"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 NOTICE "${pkgdir}/usr/share/licenses/${pkgname}/NOTICE"
install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
}
package_vibrant-cli() {
conflicts=("vibrant")
depends=("libvibrant.so=1-64")
cd "build"
env DESTDIR="$pkgdir" cmake -DCOMPONENT=cli -P cmake_install.cmake
cd "../$pkgbase"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 NOTICE "${pkgdir}/usr/share/licenses/${pkgname}/NOTICE"
install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
}
|