jobcomm/mdliveview/PKGBUILD

55 lines
1.6 KiB
Bash
Executable File

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcomm/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=mdliveview
pkgver=1.1
pkgrel=03
pkgdesc="Mdliveview is a lightweight Markdown file viewer with autoreload"
url="https://github.com/Geballin/Mdliveview"
depends=('tcl' 'tk' 'gifblock' 'tkhtml' 'tkimg' 'tdom')
makedepends=(make gcc)
source=("https://github.com/Geballin/Mdliveview/archive/${pkgver}.tar.gz")
build() {
cd ${srcdir}/Mdliveview-${pkgver}
./configure \
--prefix=/usr \
--bindir=/usr/bin \
--runstatedir=/run \
--datarootdir=/usr/share \
--libdir=/usr/lib \
--includedir=/usr/include \
--enable-option-checking \
--disable-silent-rules
make
}
#check() {
# cd ${srcdir}/Mdliveview-${pkgver}
# make check
#}
package() {
cd ${srcdir}/Mdliveview-${pkgver}
make DESTDIR="${pkgdir}" install
## For some reason this program throws out and error of not finding tls (gnutls) although it is built
## with it and it is present while it runs. This hackish solution allows it run.
sed -i 's/package require tls//' $pkgdir/usr/share/mdliveview/mdliveview.tcl
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=('BSD')
md5sums=(b985690f7cfd8dab58166325ca47b6f3)
sha256sums=(741692af3e425f0251859d1e407fd7cc3a76e87158993cb64208b9994cf91465) # 1.1.tar.gz
## 5f7dc1dd76b0bab8a3c5708fc3ea89b99fd5eb2ea2fce56f2bbbcf83988a81f0 mdliveview-1.1-03-x86_64.pkg.tar.lz