summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a92f218a8b67c05ee762796c5d0e4648c921030e (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
# Maintainer: dtluna <dtluna at waifu dot club>

pkgname='htmltui'
pkgver='1.1.0'
pkgrel=1
pkgdesc='A terminal UI utility to view HTML'
url='https://git.dtluna.net/dtluna/htmltui'
arch=('any')
license=('custom:WTFPL')

depends=()
makedepends=('go')
optdepends=()

conflicts=('htmltui-bin')

source=("${url}/archive/v${pkgver}.tar.gz")
sha256sums=('ef795e477d9e07bcc16e72488045698e79aa99bfff9edb3efd0b51de775ee8c9')

build() {
    cd $srcdir/$pkgname
    go build -o $pkgname
}

package() {
	# Bin
	rm -f "${pkgdir}/usr/bin/${pkgname}"
	install -Dm755 "${srcdir}/${pkgname}/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"

	# License
	install -Dm644 "${srcdir}/${pkgname}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}