fbt
937b0fa52c
All checks were successful
Package builder / BuildPackage (push) Successful in 28s
Signed-off-by: fbt <fbt@fleshless.org>
43 lines
772 B
Bash
43 lines
772 B
Bash
# % Trigger: 1589492803 %
|
|
# Maintainer: fbt@fleshless.org
|
|
|
|
_pkgname=xsct
|
|
pkgname=$_pkgname-git
|
|
pkgver=r41.1cf765e
|
|
pkgrel=1
|
|
pkgdesc='set color temperature of screen'
|
|
url='https://github.com/faf0/sct'
|
|
license=('PD')
|
|
arch=('x86_64')
|
|
makedepends=('git')
|
|
depends=('libx11' 'xorgproto' 'libxrandr')
|
|
|
|
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
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd sct
|
|
make DESTDIR="$pkgdir" install
|
|
}
|