summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 826b4da0b5c8367ce3e38cce4772b0a6982785d3 (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
# Maintainer: Thomas "Ventto" Venriès <thomas.venries@gmail.com>

pkgname=pearlfan
pkgver=1.0
pkgrel=1
pkgdesc='Tool to control Pearl USB LED fan.'
arch=('x86_64')
url="https://github.com/Ventto/${pkgname}"
license=('GPL3')
makedepends=('help2man netpbm')
source=("https://github.com/Ventto/${pkgname}/archive/v${pkgver}.tar.gz")
sha256sums=('c3861722d533db3a99859fb4a2a620a995be98479ea71d41f3565b6c4a85d82a')

build() {
  cd ${srcdir}/${pkgname}-${pkgver}
  make -f Makefile.libusb
  help2man -N -n "${pkgdesc}" -h -h -v -v ${pkgname} | gzip - > ${pkgname}.1.gz
}

package() {
  cd ${srcdir}/${pkgname}-${pkgver}
  install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
  install -Dm644 ${pkgname}.1.gz ${pkgdir}/usr/share/man/man1/${pkgname}.1.gz
  cp -r tests/images ${pkgdir}/usr/share/${pkgname}/
  install -Dm755 ${pkgname} ${pkgdir}/usr/bin/${pkgname}
  chmod 4755 ${pkgdir}/usr/bin/${pkgname}
}