diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..826b4da0b5c8 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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} +} |