add asciidoctor shared-mime-info shareutils tcl

This commit is contained in:
joborun linux 2024-01-30 10:27:15 +02:00
parent 50614b67db
commit 49a7a1382a
26 changed files with 644 additions and 0 deletions

View File

@ -74,3 +74,6 @@ sha256sums=(237b2ba5c35c0ae7ccd4cd44ebf1d87c20b2695dae01798954416d492ef7fa0e) #
## ca1d6f8e08105d17fb2776df46244106e2478f3c00cf90a904d27de8e1121dbf asciidoc-10.2.0-04-x86_64.pkg.tar.lz
## cdb7ffa2c053d509fa67dab437bc02c9b065d0f30e9e77ddad209448f576b34e # PKGBUILD
00c3fcd25c48da1fda19e2afac6a42b92d9e092dd435049ffb37a3e43dc0673d # PKGBUILD.1
00c3fcd25c48da1fda19e2afac6a42b92d9e092dd435049ffb37a3e43dc0673d # PKGBUILD-arch

46
asciidoctor/PKGBUILD Normal file
View File

@ -0,0 +1,46 @@
#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname='asciidoctor'
pkgver=2.0.20
pkgrel=01
pkgdesc='An implementation of AsciiDoc in Ruby'
url='https://asciidoctor.org'
makedepends=('ruby-rdoc')
depends=('ruby')
options=('!emptydirs')
source=("https://rubygems.org/downloads/${pkgname}-${pkgver}.gem")
noextract=("$pkgname-$pkgver.gem")
package() {
local _gemdir="$(ruby -e 'puts Gem.default_dir')"
gem install --ignore-dependencies --no-user-install --verbose \
-i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" \
"$pkgname-$pkgver.gem"
install -Dm644 "$pkgdir/$_gemdir/gems/$pkgname-$pkgver/LICENSE" \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 "$pkgdir/$_gemdir/gems/$pkgname-$pkgver/man/asciidoctor.1" \
"$pkgdir/usr/share/man/man1/asciidoctor.1"
rm "$pkgdir/$_gemdir/cache/$pkgname-$pkgver.gem"
rm -rf "$pkgdir/$_gemdir/gems/$pkgname-$pkgver/man"
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=('MIT')
sha512sums=('de0179ae27443ddd04153ae0c941939523372203c561e5bb8a900af80b1056d6a3d8b554015d37836efb9bdf870d4d115272607f4d548956fc240c028abfbcf2')
sha256sums=(835eabd445e4ae88f56a5f4e07593c3612b2be72eb661c612c3a8e1e17c57479) # asciidoctor-2.0.20.gem
## f595e662af113b3f2c5a831af0dab150b7ef38fb5c64c086dec4abffc0e4c001 asciidoctor-2.0.20-01-x86_64.pkg.tar.lz

35
asciidoctor/PKGBUILD-arch Normal file
View File

@ -0,0 +1,35 @@
# Maintainer: Christian Rebischke <chris.rebischke@archlinux.org>
# Maintainer: Andreas 'Segaja' Schleifer <segaja at archlinux dot org>
# Contributor: Stefan Tatschner <rumpelsepp@sevenbyte.org>
# Contributor: Nick Østergaard <oe.nick at gmail dot com>
# Contributor: Nicolas Bigaouette <nbigaouette@chemcomp.com>
pkgname='asciidoctor'
pkgver=2.0.20
pkgrel=1
pkgdesc='An implementation of AsciiDoc in Ruby'
arch=('any')
url='https://asciidoctor.org'
license=('MIT')
makedepends=('ruby-rdoc')
depends=('ruby')
options=('!emptydirs')
source=("https://rubygems.org/downloads/${pkgname}-${pkgver}.gem")
noextract=("$pkgname-$pkgver.gem")
sha512sums=('de0179ae27443ddd04153ae0c941939523372203c561e5bb8a900af80b1056d6a3d8b554015d37836efb9bdf870d4d115272607f4d548956fc240c028abfbcf2')
package() {
local _gemdir="$(ruby -e 'puts Gem.default_dir')"
gem install --ignore-dependencies --no-user-install --verbose \
-i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" \
"$pkgname-$pkgver.gem"
install -Dm644 "$pkgdir/$_gemdir/gems/$pkgname-$pkgver/LICENSE" \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 "$pkgdir/$_gemdir/gems/$pkgname-$pkgver/man/asciidoctor.1" \
"$pkgdir/usr/share/man/man1/asciidoctor.1"
rm "$pkgdir/$_gemdir/cache/$pkgname-$pkgver.gem"
rm -rf "$pkgdir/$_gemdir/gems/$pkgname-$pkgver/man"
}

1
asciidoctor/clean Normal file
View File

@ -0,0 +1 @@
rm -rf {src,pkg,asciidoctor*.gem}

3
asciidoctor/deps Normal file
View File

@ -0,0 +1,3 @@
ruby-rdoc

6
asciidoctor/time Normal file
View File

@ -0,0 +1,6 @@
real 0m10.875s
user 0m7.252s
sys 0m2.580s

View File

@ -0,0 +1,130 @@
From 5a406b06792e26a83c7346b3c2443c0bd8d4cdb2 Mon Sep 17 00:00:00 2001
From: Eli Schwartz <eschwartz@archlinux.org>
Date: Mon, 8 Nov 2021 18:22:47 -0500
Subject: [PATCH] migrate from custom itstool to builtin msgfmt for creating
translated XML
gettext upstream has supported this for a very long time (since 0.19.7
via commit b3c2a5a242c36fbbaa0c5b17f975d6c638598a23, released in 2015),
and itstool is (mostly) a legacy of the time before gettext had proper
support for these sorts of use cases.
This is similar to the state of intltool, which is described at
https://wiki.gnome.org/MigratingFromIntltoolToGettext
During the port from autotools to meson, the legacy use of itstool was
faithfully translated to meson in the only way possible: by jumping
through hoops to run ninja inside ninja in order to generate the .mo
files for itstool, because meson's i18n module used a flawed design and
there was no "real" target to create those files, only a .PHONY
run_target which other rules cannot depend on.
Although meson 0.60.0 added support for real targets for the built .mo
files, this changed the rules for output filenames, breaking the script.
But msgfmt does not care, and anyways comes with builtin meson functions
for convenient use with XML files. So let's take this opportunity to
drop legacy dependencies and use the modern, builtin tooling, which
fixes this bug as a side effect.
Fixes #170
---
.gitlab-ci.yml | 2 --
README.md | 2 +-
data/freedesktop_generate.sh | 12 ------------
data/meson.build | 16 +++++-----------
meson.build | 1 -
5 files changed, 6 insertions(+), 27 deletions(-)
delete mode 100755 data/freedesktop_generate.sh
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 985dfe9..345e1ce 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -9,7 +9,6 @@ variables:
glib2-devel
gettext
git
- itstool
xmlto
findutils
gettext-devel
@@ -34,4 +33,3 @@ build:meson:
paths:
- _build/meson-logs/*.txt
- _build/meson-dist/*.*
-
diff --git a/README.md b/README.md
index c23d9d5..b2fb0ac 100644
--- a/README.md
+++ b/README.md
@@ -19,7 +19,7 @@ $ ninja -v -C _build install
```
It requires the glib development package to be installed as well as
-gettext and itstool.
+gettext.
This database is translated at Transifex.
diff --git a/data/freedesktop_generate.sh b/data/freedesktop_generate.sh
deleted file mode 100755
index 62ccffa..0000000
--- a/data/freedesktop_generate.sh
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/bin/sh -e
-
-src_root="$1"
-build_root="$2"
-
-${NINJA:-ninja} -C "${build_root}" shared-mime-info-gmo
-
-itstool \
- --its "${src_root}/data/its/shared-mime-info.its" \
- --join "${src_root}/data/freedesktop.org.xml.in" \
- -o "${build_root}/data/freedesktop.org.xml" \
- "${build_root}/po/"*".gmo"
diff --git a/data/meson.build b/data/meson.build
index 24361c9..09ed7a9 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -1,18 +1,12 @@
install_man('update-mime-database.1')
-freedesktop_org_xml = custom_target('freedesktop.org.xml',
- input : files(
- 'freedesktop.org.xml.in',
- 'its/shared-mime-info.its',
- 'its/shared-mime-info.loc',
- ),
+freedesktop_org_xml = i18n.merge_file(
+ input: 'freedesktop.org.xml.in',
output: 'freedesktop.org.xml',
- command: [
- find_program('freedesktop_generate.sh'),
- meson.source_root(),
- meson.build_root()
- ],
+ data_dirs: '.',
+ po_dir: '../po',
+ type: 'xml',
install: true,
install_dir: get_option('datadir') / 'mime' / 'packages',
)
diff --git a/meson.build b/meson.build
index 0d08c8a..60f17ae 100644
--- a/meson.build
+++ b/meson.build
@@ -20,7 +20,6 @@ config.set_quoted('VERSION', meson.project_version())
###############################################################################
# Find tools
-itstool = find_program('itstool')
xmllint = find_program('xmllint')
xmlto = find_program('xmlto', required: false)
--
GitLab

66
shared-mime-info/PKGBUILD Normal file
View File

@ -0,0 +1,66 @@
#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=shared-mime-info
_commit=9a6d6b8e963935f145f3a1ef446552de6996dada # = master 2023-11-12 = v2.4
pkgver=2.4
pkgrel=01
pkgdesc="Freedesktop.org Shared MIME Info"
depends=('libxml2' 'glib2' 'glibc' 'gcc-libs')
makedepends=('gettext' 'xmlto' 'docbook-xsl' 'git' 'meson')
options=(!makeflags)
install=shared-mime-info.install
# https://gitlab.freedesktop.org/xdg/shared-mime-info
url="https://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec/"
source=("git+https://gitlab.freedesktop.org/xdg/shared-mime-info.git#commit=$_commit"
# to run the testsuite
"git+https://gitlab.freedesktop.org/xdg/xdgmime.git#commit=92f6a09fda2b23c2ab95cede8eb0612ca96bd0f7" # master 2022-01-19
update-mime-database.hook)
pkgver() {
cd $pkgname
git describe --tags | sed 's/^Release.//;s/\([^-]*-g\)/\1/;s/-/+/g;'
}
prepare() {
# build xdgmime from source to run the testsuite - check HACKING.md
CFLAGS= make -C xdgmime
}
build() {
arch-meson ${pkgname} build \
-D update-mimedb=false \
-D xdgmime-path=${srcdir}/xdgmime
# Print config
meson configure build
# compile it
ninja -C build
}
check() {
meson test -C build --print-errorlogs
}
package() {
DESTDIR="$pkgdir" meson install -C build
# use a prefix to run it early enough - other hooks may depend on it - FS#72858
install -Dm644 "$srcdir"/update-mime-database.hook "$pkgdir"/usr/share/libalpm/hooks/30-update-mime-database.hook
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=('GPL2')
sha256sums=(SKIP
SKIP
f08efbcbac9d2bd18a805b8dcf3ed06d7763b97eca5935aa64d65593774b6501) # update-mime-database.hook
## d48768094a7a906215d112634dc3f55fe59136958255f5d1c1fef8105c3f80a1 shared-mime-info-2.4-01-x86_64.pkg.tar.lz

View File

@ -0,0 +1,54 @@
# Maintainer: AndyRTR <andyrtr@archlinux.org>
# Maintainer: Jan de Groot <jgc@archlinux.org>
pkgname=shared-mime-info
_commit=9a6d6b8e963935f145f3a1ef446552de6996dada # = master 2023-11-12 = v2.4
pkgver=2.4
pkgrel=1
pkgdesc="Freedesktop.org Shared MIME Info"
arch=('x86_64')
license=('GPL2')
depends=('libxml2' 'glib2' 'glibc' 'gcc-libs')
makedepends=('gettext' 'xmlto' 'docbook-xsl' 'git' 'meson')
install=shared-mime-info.install
# https://gitlab.freedesktop.org/xdg/shared-mime-info
url="https://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec/"
source=("git+https://gitlab.freedesktop.org/xdg/shared-mime-info.git#commit=$_commit"
# to run the testsuite
"git+https://gitlab.freedesktop.org/xdg/xdgmime.git#commit=92f6a09fda2b23c2ab95cede8eb0612ca96bd0f7" # master 2022-01-19
update-mime-database.hook)
sha256sums=('SKIP'
'SKIP'
'f08efbcbac9d2bd18a805b8dcf3ed06d7763b97eca5935aa64d65593774b6501')
options=(!makeflags)
pkgver() {
cd $pkgname
git describe --tags | sed 's/^Release.//;s/\([^-]*-g\)/\1/;s/-/+/g;'
}
prepare() {
# build xdgmime from source to run the testsuite - check HACKING.md
CFLAGS= make -C xdgmime
}
build() {
arch-meson ${pkgname} build \
-D update-mimedb=false \
-D xdgmime-path=${srcdir}/xdgmime
# Print config
meson configure build
# compile it
ninja -C build
}
check() {
meson test -C build --print-errorlogs
}
package() {
DESTDIR="$pkgdir" meson install -C build
# use a prefix to run it early enough - other hooks may depend on it - FS#72858
install -Dm644 "$srcdir"/update-mime-database.hook "$pkgdir"/usr/share/libalpm/hooks/30-update-mime-database.hook
}

1
shared-mime-info/clean Normal file
View File

@ -0,0 +1 @@
rm -rf {src,pkg,shared-mime-info,xdgmime}

7
shared-mime-info/deps Normal file
View File

@ -0,0 +1,7 @@
gettext
xmlto
docbook-xsl
git
meson

View File

@ -0,0 +1,7 @@
post_remove() {
if [ -d usr/share/mime ]; then
rm -f usr/share/mime/{globs,globs2,icons,treemagic,generic-icons,types,magic,XMLnamespaces,subclasses,aliases,mime.cache}
rm -rf usr/share/mime/{application,audio,image,inode,message,model,multipart,text,video,x-content,x-epoc}
rmdir --ignore-fail-on-non-empty usr/share/mime
fi
}

6
shared-mime-info/time Normal file
View File

@ -0,0 +1,6 @@
real 0m13.904s
user 0m13.584s
sys 0m1.853s

View File

@ -0,0 +1,11 @@
[Trigger]
Type = Path
Operation = Install
Operation = Upgrade
Operation = Remove
Target = usr/share/mime/packages/*.xml
[Action]
Description = Updating the MIME type database...
When = PostTransaction
Exec = /usr/bin/env PKGSYSTEM_ENABLE_FSYNC=0 /usr/bin/update-mime-database /usr/share/mime

58
sharutils/PKGBUILD Normal file
View File

@ -0,0 +1,58 @@
#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=sharutils
pkgver=4.15.2
pkgrel=04
pkgdesc='Makes so-called shell archives out of many files'
url='https://www.gnu.org/software/sharutils/'
source=("https://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.xz"{,.sig})
# fseeko.patch)
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
sed 's/FUNC_FFLUSH_STDIN/-1/g' -i lib/fseeko.c
# Upstream is aware but thinks this isn't a bug/problem in sharutils itself
# See http://lists.gnu.org/archive/html/bug-gnu-utils/2013-10/msg00011.html
# https://github.com/gentoo-mirror/gentoo/blob/3c6efe0918434f9f6a7599948d5e8343b522e2d0/app-arch/sharutils/sharutils-4.15.2-r2.ebuild
# append-cflags $(test-flags-CC -Wno-error=format-security)
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
CFLAGS+=' -fcommon -Wno-error=format-security' # https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common
./configure \
--prefix=/usr \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--enable-nls
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
depends=('perl' 'gettext' 'texinfo')
make DESTDIR="${pkgdir}" install
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=('GPL')
validpgpkeys=('1F967B15DEB2349CACDF3D71D9204CB5BFBF0221')
sha256sums=(2b05cff7de5d7b646dc1669bc36c35fdac02ac6ae4b6c19cb3340d87ec553a9a # sharutils-4.15.2.tar.xz
c25bdb9eff647d44adde4ff39adf55579662cc755bf8a0fafda8e756c8878bb9) # sharutils-4.15.2.tar.xz.sig
## a7caf785f27ab13eeb52783e0cc70397f88321f934d401f0cb7209597e5e567a sharutils-4.15.2-04-x86_64.pkg.tar.lz

38
sharutils/PKGBUILD-arch Normal file
View File

@ -0,0 +1,38 @@
# Maintainer: Gaetan Bisson <bisson@archlinux.org>
# Contributor: Kevin Piche <kevin@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
pkgname=sharutils
pkgver=4.15.2
pkgrel=4
pkgdesc='Makes so-called shell archives out of many files'
url='https://www.gnu.org/software/sharutils/'
license=('GPL')
arch=('x86_64')
depends=('perl' 'gettext' 'texinfo')
validpgpkeys=('1F967B15DEB2349CACDF3D71D9204CB5BFBF0221')
source=("https://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.xz"{,.sig})
sha256sums=('2b05cff7de5d7b646dc1669bc36c35fdac02ac6ae4b6c19cb3340d87ec553a9a'
'SKIP')
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
sed 's/FUNC_FFLUSH_STDIN/-1/g' -i lib/fseeko.c
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
CFLAGS+=' -fcommon' # https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common
./configure \
--prefix=/usr \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
}
## 882595d7ff2a6d0ccf1b3e616ad472d9f19a2910c83e2785682429612a48f3a8 # PKGBUILD

1
sharutils/clean Normal file
View File

@ -0,0 +1 @@
rm -rf {src,pkg,sharutils-*.tar.xz*}

1
sharutils/deps Normal file
View File

@ -0,0 +1 @@
gettext

21
sharutils/fseeko.patch Normal file
View File

@ -0,0 +1,21 @@
--- sharutils-4.15.2.orig/lib/fseeko.c 2015-05-30 08:34:54.000000000 -0700
+++ sharutils-4.15.2/lib/fseeko.c 2018-12-24 19:51:59.126008314 -0800
@@ -47,7 +47,7 @@ fseeko (FILE *fp, off_t offset, int when
#endif
/* These tests are based on fpurge.c. */
-#if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */
+#if defined _IO_EOF_SEEN || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */
if (fp->_IO_read_end == fp->_IO_read_ptr
&& fp->_IO_write_ptr == fp->_IO_write_base
&& fp->_IO_save_base == NULL)
@@ -123,7 +123,7 @@ fseeko (FILE *fp, off_t offset, int when
return -1;
}
-#if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */
+#if defined _IO_EOF_SEEN || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */
fp->_flags &= ~_IO_EOF_SEEN;
fp->_offset = pos;
#elif defined __sferror || defined __DragonFly__ || defined __ANDROID__
diff -urpN sharutils-4.15.2.orig/lib/stdio-impl.h sharutils-4.15.2/lib/stdio-impl.h

1
sharutils/key Normal file
View File

@ -0,0 +1 @@
gpg --recv-key D9204CB5BFBF0221

6
sharutils/time Normal file
View File

@ -0,0 +1,6 @@
real 0m33.163s
user 0m27.386s
sys 0m6.567s

73
tcl/PKGBUILD Normal file
View File

@ -0,0 +1,73 @@
#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=tcl
pkgver=8.6.13
pkgrel=01
pkgdesc="Powerful, easy-to-learn dynamic programming language"
url="http://tcl.sourceforge.net/"
depends=('zlib')
options=('staticlibs' '!lto')
source=(https://downloads.sourceforge.net/sourceforge/tcl/tcl${pkgver}-src.tar.gz)
prepare() {
cd tcl${pkgver}
# we build the tcl sqlite interface in sqlite-tcl package
rm -rf pkgs/sqlite3*
}
build() {
cd tcl${pkgver}/unix
./configure --prefix=/usr --mandir=/usr/share/man --enable-threads --enable-64bit
make
}
check() {
cd tcl${pkgver}/unix
make test
}
package() {
cd tcl${pkgver}/unix
make INSTALL_ROOT="${pkgdir}" install install-private-headers
ln -sf tclsh${pkgver%.*} "${pkgdir}/usr/bin/tclsh"
ln -sf libtcl${pkgver%.*}.so "${pkgdir}/usr/lib/libtcl.so"
install -Dm644 ../license.terms "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 tcl.m4 -t "$pkgdir"/usr/share/aclocal
chmod 644 "$pkgdir/usr/lib/libtclstub8.6.a"
# remove buildroot traces
_tclver=8.6
sed -e "s#${srcdir}/tcl${pkgver}/unix#/usr/lib#" \
-e "s#${srcdir}/tcl${pkgver}#/usr/include#" \
-e "s#'{/usr/lib} '#'/usr/lib/tcl$_tclver'#" \
-i "${pkgdir}/usr/lib/tclConfig.sh"
tdbcver=tdbc1.1.5
sed -e "s#${srcdir}/tcl${pkgver}/unix/pkgs/$tdbcver#/usr/lib/$tdbcver#" \
-e "s#${srcdir}/tcl${pkgver}/pkgs/$tdbcver/generic#/usr/include#" \
-e "s#${srcdir}/tcl${pkgver}/pkgs/$tdbcver/library#/usr/lib/tcl${pkgver%.*}#" \
-e "s#${srcdir}/tcl${pkgver}/pkgs/$tdbcver#/usr/include#" \
-i "${pkgdir}/usr/lib/$tdbcver/tdbcConfig.sh"
itclver=itcl4.2.3
sed -e "s#${srcdir}/tcl${pkgver}/unix/pkgs/$itclver#/usr/lib/$itclver#" \
-e "s#${srcdir}/tcl${pkgver}/pkgs/$itclver/generic#/usr/include#" \
-e "s#${srcdir}/tcl${pkgver}/pkgs/$itclver#/usr/include#" \
-i "${pkgdir}/usr/lib/$itclver/itclConfig.sh"
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=('custom')
sha256sums=(43a1fae7412f61ff11de2cfd05d28cfc3a73762f354a417c62370a54e2caf066) # tcl8.6.13-src.tar.gz
## c72b4954dd1ce9cc895c530837fbffa6669bf2d1eb90fbdf80bbb521337b3036 tcl-8.6.13-01-x86_64.pkg.tar.lz

60
tcl/PKGBUILD-arch Normal file
View File

@ -0,0 +1,60 @@
# Maintainer: Eric Bélanger <eric@archlinux.org>
pkgname=tcl
pkgver=8.6.13
pkgrel=1
pkgdesc="Powerful, easy-to-learn dynamic programming language"
arch=('x86_64')
url="http://tcl.sourceforge.net/"
license=('custom')
depends=('zlib')
options=('staticlibs' '!lto')
source=(https://downloads.sourceforge.net/sourceforge/tcl/tcl${pkgver}-src.tar.gz)
sha256sums=('43a1fae7412f61ff11de2cfd05d28cfc3a73762f354a417c62370a54e2caf066')
prepare() {
cd tcl${pkgver}
# we build the tcl sqlite interface in sqlite-tcl package
rm -rf pkgs/sqlite3*
}
build() {
cd tcl${pkgver}/unix
./configure --prefix=/usr --mandir=/usr/share/man --enable-threads --enable-64bit
make
}
check() {
cd tcl${pkgver}/unix
make test
}
package() {
cd tcl${pkgver}/unix
make INSTALL_ROOT="${pkgdir}" install install-private-headers
ln -sf tclsh${pkgver%.*} "${pkgdir}/usr/bin/tclsh"
ln -sf libtcl${pkgver%.*}.so "${pkgdir}/usr/lib/libtcl.so"
install -Dm644 ../license.terms "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 tcl.m4 -t "$pkgdir"/usr/share/aclocal
chmod 644 "$pkgdir/usr/lib/libtclstub8.6.a"
# remove buildroot traces
_tclver=8.6
sed -e "s#${srcdir}/tcl${pkgver}/unix#/usr/lib#" \
-e "s#${srcdir}/tcl${pkgver}#/usr/include#" \
-e "s#'{/usr/lib} '#'/usr/lib/tcl$_tclver'#" \
-i "${pkgdir}/usr/lib/tclConfig.sh"
tdbcver=tdbc1.1.5
sed -e "s#${srcdir}/tcl${pkgver}/unix/pkgs/$tdbcver#/usr/lib/$tdbcver#" \
-e "s#${srcdir}/tcl${pkgver}/pkgs/$tdbcver/generic#/usr/include#" \
-e "s#${srcdir}/tcl${pkgver}/pkgs/$tdbcver/library#/usr/lib/tcl${pkgver%.*}#" \
-e "s#${srcdir}/tcl${pkgver}/pkgs/$tdbcver#/usr/include#" \
-i "${pkgdir}/usr/lib/$tdbcver/tdbcConfig.sh"
itclver=itcl4.2.3
sed -e "s#${srcdir}/tcl${pkgver}/unix/pkgs/$itclver#/usr/lib/$itclver#" \
-e "s#${srcdir}/tcl${pkgver}/pkgs/$itclver/generic#/usr/include#" \
-e "s#${srcdir}/tcl${pkgver}/pkgs/$itclver#/usr/include#" \
-i "${pkgdir}/usr/lib/$itclver/itclConfig.sh"
}

1
tcl/clean Normal file
View File

@ -0,0 +1 @@
rm -rf {src,pkg,tcl*.tar.gz}

2
tcl/deps Normal file
View File

@ -0,0 +1,2 @@

6
tcl/time Normal file
View File

@ -0,0 +1,6 @@
real 6m13.534s
user 2m19.468s
sys 0m20.624s