2024-10-14 20:39:17 +00:00
|
|
|
# % Trigger: 1589492803 %
|
|
|
|
# Maintainer: fbt@fleshless.org
|
2019-11-17 14:59:44 +00:00
|
|
|
|
|
|
|
_pkgname=xsct
|
|
|
|
pkgname=$_pkgname-git
|
2023-10-25 23:59:08 +00:00
|
|
|
pkgver=r41.1cf765e
|
2019-11-17 14:59:44 +00:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc='set color temperature of screen'
|
|
|
|
url='https://github.com/faf0/sct'
|
|
|
|
license=('PD')
|
|
|
|
arch=('x86_64')
|
2019-11-17 15:12:52 +00:00
|
|
|
makedepends=('git')
|
2019-11-17 15:13:45 +00:00
|
|
|
depends=('libx11' 'xorgproto' 'libxrandr')
|
2019-11-17 14:59:44 +00:00
|
|
|
|
|
|
|
provides=("$_pkgname")
|
|
|
|
conflicts=("$_pkgname")
|
|
|
|
|
|
|
|
source=("git+$url")
|
|
|
|
sha512sums=('SKIP')
|
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd "$pkgname"
|
|
|
|
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
|
|
|
}
|
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd sct
|
|
|
|
( set -o pipefail
|
|
|
|
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
|
|
|
|
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd sct
|
2023-10-25 23:59:08 +00:00
|
|
|
make
|
2019-11-17 14:59:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd sct
|
2023-10-25 23:59:08 +00:00
|
|
|
make DESTDIR="$pkgdir" install
|
2019-11-17 14:59:44 +00:00
|
|
|
}
|