init
Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
commit
49549280c0
41
PKGBUILD
Normal file
41
PKGBUILD
Normal file
|
@ -0,0 +1,41 @@
|
|||
# % Trigger: 1509929502 %
|
||||
# Contributor: openfbt
|
||||
|
||||
_pkgname=xsct
|
||||
pkgname=$_pkgname-git
|
||||
pkgver=r23.eaf655e
|
||||
pkgrel=1
|
||||
pkgdesc='set color temperature of screen'
|
||||
url='https://github.com/faf0/sct'
|
||||
license=('PD')
|
||||
arch=('x86_64')
|
||||
makedepends=('git')
|
||||
|
||||
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
|
||||
gcc -Wall -Wextra -Werror -pedantic -std=c99 -O2 -I /usr/X11R6/include xsct.c -o xsct -L /usr/X11R6/lib -lX11 -lXrandr -lm -s
|
||||
}
|
||||
|
||||
package() {
|
||||
cd sct
|
||||
install -Dm755 xsct "$pkgdir/usr/bin/xsct"
|
||||
}
|
Loading…
Reference in New Issue
Block a user