summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e0959be956bcf140e1a8fef8f13e5686ae938c9f (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: Axel McLaren <scm(at)axml(dot)uk>

pkgname=sxcs
pkgver=1.1.0
pkgrel=1
pkgdesc="minimal X11 color picker and magnifier"
arch=('i686' 'x86_64')
url="https://codeberg.org/NRK/sxcs"
license=('GPL3')
depends=('libx11' 'libxcursor')
provides=("${pkgname}")
conflicts=("${pkgname}-git")

source=(${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz)
sha256sums=('23cd9aef9d590172744c90083480786d0b20945e9c2eea2061d379bbdf7f3748')

build() {
  cd "${pkgname}"

  export CC="${CC:-gcc}"

  ${CC} -o sxcs sxcs.c ${CFLAGS} ${LDFLAGS} -s -lX11 -lXcursor
}

package() {
  cd "${pkgname}"

  install -Dm755 sxcs "${pkgdir}/usr/bin/sxcs"
  install -Dm644 sxcs.1 "${pkgdir}/usr/share/man/man1/sxcs.1"

  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
}