upg mdliveview

add tdom
This commit is contained in:
joborun linux 2023-09-03 03:53:40 +03:00
parent 5481548678
commit 61d2c7e950
9 changed files with 229 additions and 8 deletions

View File

@ -7,27 +7,38 @@
pkgname=mdliveview
pkgver=1.1
pkgrel=02
pkgrel=03
pkgdesc="Mdliveview is a lightweight Markdown file viewer with autoreload"
url="https://github.com/Geballin/Mdliveview"
depends=('tcl' 'tk' 'gifblock' 'tkhtml' 'tkimg')
optdepends=()
depends=('tcl' 'tk' 'gifblock' 'tkhtml' 'tkimg' 'tdom')
makedepends=(make gcc)
conflicts=()
replaces=()
backup=()
install=
source=("https://github.com/Geballin/Mdliveview/archive/${pkgver}.tar.gz")
build() {
cd ${srcdir}/Mdliveview-${pkgver}
./configure --prefix=/usr
./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 ----
@ -40,3 +51,4 @@ md5sums=(b985690f7cfd8dab58166325ca47b6f3)
sha256sums=(741692af3e425f0251859d1e407fd7cc3a76e87158993cb64208b9994cf91465) # 1.1.tar.gz
## 5f7dc1dd76b0bab8a3c5708fc3ea89b99fd5eb2ea2fce56f2bbbcf83988a81f0 mdliveview-1.1-03-x86_64.pkg.tar.lz

68
mdliveview/configure vendored Normal file
View File

@ -0,0 +1,68 @@
`configure' configures mdliveview 1.1 to adapt to many kinds of systems.
Usage: src/Mdliveview-1.1/configure [OPTION]... [VAR=VALUE]...
To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE. See below for descriptions of some of the useful variables.
Defaults for the options are specified in brackets.
Configuration:
-h, --help display this help and exit
--help=short display options specific to this package
--help=recursive display the short help of all the included packages
-V, --version display version information and exit
-q, --quiet, --silent do not print `checking ...' messages
--cache-file=FILE cache test results in FILE [disabled]
-C, --config-cache alias for `--cache-file=config.cache'
-n, --no-create do not create output files
--srcdir=DIR find the sources in DIR [configure dir or `..']
Installation directories:
--prefix=PREFIX install architecture-independent files in PREFIX
[/usr/local]
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
[PREFIX]
By default, `make install' will install all the files in
`/usr/local/bin', `/usr/local/lib' etc. You can specify
an installation prefix other than `/usr/local' using `--prefix',
for instance `--prefix=$HOME'.
For better control, use the options below.
Fine tuning of the installation directories:
--bindir=DIR user executables [EPREFIX/bin]
--sbindir=DIR system admin executables [EPREFIX/sbin]
--libexecdir=DIR program executables [EPREFIX/libexec]
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
--runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
--libdir=DIR object code libraries [EPREFIX/lib]
--includedir=DIR C header files [PREFIX/include]
--oldincludedir=DIR C header files for non-gcc [/usr/include]
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
--infodir=DIR info documentation [DATAROOTDIR/info]
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
--mandir=DIR man documentation [DATAROOTDIR/man]
--docdir=DIR documentation root [DATAROOTDIR/doc/mdliveview]
--htmldir=DIR html documentation [DOCDIR]
--dvidir=DIR dvi documentation [DOCDIR]
--pdfdir=DIR pdf documentation [DOCDIR]
--psdir=DIR ps documentation [DOCDIR]
Program names:
--program-prefix=PREFIX prepend PREFIX to installed program names
--program-suffix=SUFFIX append SUFFIX to installed program names
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
Optional Features:
--disable-option-checking ignore unrecognized --enable/--with options
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--enable-silent-rules less verbose build output (undo: "make V=1")
--disable-silent-rules verbose build output (undo: "make V=0")
Report bugs to the package provider.

View File

@ -6,3 +6,4 @@ tkimg
tdom

56
tdom/PKGBUILD Normal file
View File

@ -0,0 +1,56 @@
#!/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=tdom
pkgver=0.9.3
pkgrel=02
pkgdesc="A fast XML/DOM/XPath package for Tcl written in C"
url="http://tdom.org"
depends=('tcl' 'gumbo-parser')
source=(http://tdom.org/downloads/tdom-${pkgver}-src.tgz
no-build-dir.patch)
prepare() {
cd "${pkgname}-$pkgver-src"
patch -p0 -i "$srcdir"/no-build-dir.patch
}
build() {
cd "${pkgname}-$pkgver-src"
if [ $CARCH = "x86_64" ] ; then
./configure --prefix=/usr --enable-64bit --enable-html5
else
./configure --prefix=/usr
fi
make
}
check() {
cd "${pkgname}-$pkgver-src"
make test
}
package() {
cd "${pkgname}-$pkgver-src"
make DESTDIR="$pkgdir/" install
# rm empty directory
rmdir "$pkgdir/usr/bin"
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=('MPL')
sha256sums=(b46bcb6750283bcf41bd6f220cf06e7074752dc8b9a87a192bd81e53caad53f9 # tdom-0.9.3-src.tgz
45c8c54582b55af785c10019271c53cdab0c2a1e4cc858c12af8e217f00cdb48) # no-build-dir.patch
## f3e2a272c6d2c0af9695423d7097567ebf32329944d80678912e6951fcd9aafa tdom-0.9.3-02-x86_64.pkg.tar.lz

49
tdom/PKGBUILD-aur Normal file
View File

@ -0,0 +1,49 @@
# Maintainer: Uwe Koloska <kolewu [at] koloro [dot] de>
# Contributor: Dejan Cabrilo <dcabrilo [at] bitspan [dot] rs>
pkgname=tdom
pkgver=0.9.3
pkgrel=1
pkgdesc="A fast XML/DOM/XPath package for Tcl written in C"
arch=('i686' 'x86_64')
url="http://tdom.org"
license=('MPL')
groups=('devel')
depends=('tcl'
'gumbo-parser')
source=(http://tdom.org/downloads/tdom-${pkgver}-src.tgz
no-build-dir.patch)
sha256sums=('b46bcb6750283bcf41bd6f220cf06e7074752dc8b9a87a192bd81e53caad53f9'
'45c8c54582b55af785c10019271c53cdab0c2a1e4cc858c12af8e217f00cdb48')
prepare() {
cd "${pkgname}-$pkgver-src"
patch -p0 -i "$srcdir"/no-build-dir.patch
}
build() {
cd "${pkgname}-$pkgver-src"
if [ $CARCH = "x86_64" ] ; then
./configure --prefix=/usr --enable-64bit --enable-html5
else
./configure --prefix=/usr
fi
make
}
check() {
cd "${pkgname}-$pkgver-src"
make test
}
package() {
cd "${pkgname}-$pkgver-src"
make DESTDIR="$pkgdir/" install
# rm empty directory
rmdir "$pkgdir/usr/bin"
}

1
tdom/clean Normal file
View File

@ -0,0 +1 @@
rm -rf {src,pkg,tdom*.tgz*}

3
tdom/deps Normal file
View File

@ -0,0 +1,3 @@
tcl
gumbo-parser

25
tdom/no-build-dir.patch Normal file
View File

@ -0,0 +1,25 @@
--- tdomConfig__orig.sh.in 2014-11-11 00:10:47.858195132 +0100
+++ tdomConfig.sh.in 2014-11-11 00:11:56.849076613 +0100
@@ -31,22 +31,11 @@
#
# String to pass to linker to pick up the tDOM library from
-# its build directory.
-#
-TDOM_BUILD_STUB_LIB_SPEC='@PKG_BUILD_STUB_LIB_SPEC@'
-
-#
-# String to pass to linker to pick up the tDOM library from
# its installed directory.
#
TDOM_STUB_LIB_SPEC='@PKG_STUB_LIB_SPEC@'
# String to pass to linker to pick up the TDOM stub library from its
-# build directory.
-#
-TDOM_BUILD_STUB_LIB_PATH='@PKG_BUILD_STUB_LIB_PATH@'
-
-# String to pass to linker to pick up the TDOM stub library from its
# installed directory.
#
TDOM_STUB_LIB_PATH='@PKG_STUB_LIB_PATH@'

6
tdom/time Normal file
View File

@ -0,0 +1,6 @@
real 0m4.623s
user 0m4.040s
sys 0m0.834s