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

pkgname=xpub
pkgver=0.6
pkgrel=1
pkgdesc="Shell script to get user's display environment variables of any TTY from anywhere."
arch=('any')
url="https://github.com/Ventto/${pkgname}.git"
license=('MIT')
provides=("${pkgname}")
conflicts=("${pkgname}")
makedepends=('help2man')
source=("https://github.com/Ventto/${pkgname}/archive/v${pkgver}.tar.gz")
sha256sums=('SKIP')

build() {
  cd ${srcdir}/${pkgname}-${pkgver}
  help2man -N -n "${pkgdesc}" -h -h -v -v src/${pkgname}.sh | 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
  install -Dm755 src/${pkgname}.sh ${pkgdir}/usr/bin/${pkgname}
}