add duktape terminus-font
This commit is contained in:
parent
8424b9b200
commit
0b2df8a64d
|
@ -0,0 +1,59 @@
|
|||
#!/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=duktape
|
||||
pkgver=2.7.0
|
||||
pkgrel=06
|
||||
pkgdesc='Embeddable Javascript engine'
|
||||
url='https://duktape.org/'
|
||||
depends=(glibc)
|
||||
provides=(libduktape{,d}.so)
|
||||
source=("https://duktape.org/$pkgname-$pkgver.tar.xz")
|
||||
# https://duktape.org/download.html
|
||||
|
||||
prepare() {
|
||||
cd $pkgname-$pkgver
|
||||
|
||||
# tools/configure.py needs Python 2
|
||||
sed -i 's/^#undef DUK_USE_FASTINT$/#define DUK_USE_FASTINT/' src/duk_config.h
|
||||
|
||||
# Add missing NEEDED on libm.so
|
||||
sed -i 's/duktape\.c/& -lm/' Makefile.sharedlibrary
|
||||
}
|
||||
|
||||
_make() (
|
||||
local make_options=(
|
||||
-f Makefile.sharedlibrary
|
||||
INSTALL_PREFIX=/usr
|
||||
)
|
||||
|
||||
make "${make_options[@]}" "$@"
|
||||
|
||||
)
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
_make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $pkgname-$pkgver
|
||||
_make DESTDIR="$pkgdir" install
|
||||
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 LICENSE.txt
|
||||
}
|
||||
|
||||
# getver: github.com/svaarala/duktape
|
||||
|
||||
#---- arch license gpg-key & sha256sums ----
|
||||
|
||||
arch=(x86_64)
|
||||
|
||||
license=(MIT)
|
||||
|
||||
sha256sums=(90f8d2fa8b5567c6899830ddef2c03f3c27960b11aca222fa17aa7ac613c2890) # duktape-2.7.0.tar.xz
|
||||
|
||||
## 5d8404b861de0d6424955291932f8294e2000401dd3773d5a3b736c6601e98da duktape-2.7.0-06-x86_64.pkg.tar.lz
|
|
@ -0,0 +1,51 @@
|
|||
# Maintainer: Alexander F. Rødseth <xyproto@archlinux.org>
|
||||
# Contributor: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
|
||||
|
||||
pkgname=duktape
|
||||
pkgver=2.7.0
|
||||
pkgrel=6
|
||||
pkgdesc='Embeddable Javascript engine'
|
||||
url='https://duktape.org/'
|
||||
arch=(x86_64)
|
||||
license=(MIT)
|
||||
depends=(
|
||||
glibc
|
||||
)
|
||||
provides=(libduktape{,d}.so)
|
||||
source=("https://duktape.org/duktape-$pkgver.tar.xz")
|
||||
b2sums=('da5eea88758201177f32c5611a3757433ef1b0173d6430eff1f067abd7535f3e4b9c3717290fbd8475827a53f7a2a74818287a65e563f14e91761f5cd0fe30d5')
|
||||
|
||||
# https://duktape.org/download.html
|
||||
md5sums=('b3200b02ab80125b694bae887d7c1ca6')
|
||||
|
||||
prepare() {
|
||||
cd duktape-$pkgver
|
||||
|
||||
# tools/configure.py needs Python 2
|
||||
sed -i 's/^#undef DUK_USE_FASTINT$/#define DUK_USE_FASTINT/' src/duk_config.h
|
||||
|
||||
# Add missing NEEDED on libm.so
|
||||
sed -i 's/duktape\.c/& -lm/' Makefile.sharedlibrary
|
||||
}
|
||||
|
||||
_make() (
|
||||
local make_options=(
|
||||
-f Makefile.sharedlibrary
|
||||
INSTALL_PREFIX=/usr
|
||||
)
|
||||
|
||||
make "${make_options[@]}" "$@"
|
||||
)
|
||||
|
||||
build() {
|
||||
cd duktape-$pkgver
|
||||
_make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd duktape-$pkgver
|
||||
_make DESTDIR="$pkgdir" install
|
||||
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 LICENSE.txt
|
||||
}
|
||||
|
||||
# getver: github.com/svaarala/duktape
|
|
@ -0,0 +1 @@
|
|||
rm -rf {src,pkg,duktape*tar.xz}
|
|
@ -0,0 +1,2 @@
|
|||
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
|
||||
|
||||
real 0m20.785s
|
||||
user 0m20.458s
|
||||
sys 0m0.649s
|
||||
|
|
@ -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=terminus-font
|
||||
pkgver=4.49.1
|
||||
pkgrel=05
|
||||
pkgdesc='Monospace bitmap font (for X11 and console)'
|
||||
url='http://terminus-font.sourceforge.net/'
|
||||
makedepends=('xorg-bdftopcf' 'python' 'grub' 'freetype2')
|
||||
conflicts=('terminus-font-otb')
|
||||
replaces=('terminus-font-otb')
|
||||
source=("https://downloads.sourceforge.net/project/terminus-font/terminus-font-${pkgver%.1}/terminus-font-$pkgver.tar.gz"
|
||||
fix-75-yes-terminus.patch)
|
||||
|
||||
prepare() {
|
||||
cd "terminus-font-$pkgver"
|
||||
patch -p1 <"$srcdir"/fix-75-yes-terminus.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "terminus-font-$pkgver"
|
||||
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--x11dir=/usr/share/fonts/misc \
|
||||
--otbdir=/usr/share/fonts/misc \
|
||||
--psfdir=/usr/share/kbd/consolefonts
|
||||
make all otb
|
||||
# build grub fonts
|
||||
for i in *.bdf; do
|
||||
grub-mkfont -o "$(basename "$i" .bdf).pf2" "$i"
|
||||
done
|
||||
}
|
||||
|
||||
package() {
|
||||
make -C "terminus-font-$pkgver" DESTDIR="$pkgdir" install install-otb
|
||||
|
||||
install -Dm644 "$srcdir/terminus-font-$pkgver/75-yes-terminus.conf" \
|
||||
"$pkgdir/usr/share/fontconfig/conf.avail/75-yes-terminus.conf"
|
||||
install -Dm644 "$srcdir/terminus-font-$pkgver/OFL.TXT" \
|
||||
"$pkgdir/usr/share/licenses/terminus-font/LICENSE"
|
||||
|
||||
install -d "$pkgdir/usr/share/fontconfig/conf.default"
|
||||
ln -sr "$pkgdir/usr/share/fontconfig/conf.avail/75-yes-terminus.conf" \
|
||||
"$pkgdir/usr/share/fontconfig/conf.default/75-yes-terminus.conf"
|
||||
cd terminus-font-$pkgver
|
||||
for i in *.pf2; do
|
||||
install -D -m644 $i "$pkgdir/usr/share/grub/$i"
|
||||
done
|
||||
}
|
||||
|
||||
#---- arch license gpg-key & sha256sums ----
|
||||
|
||||
arch=(x86_64)
|
||||
|
||||
license=('GPL2' 'custom:OFL')
|
||||
|
||||
sha256sums=(d961c1b781627bf417f9b340693d64fc219e0113ad3a3af1a3424c7aa373ef79 # terminus-font-4.49.1.tar.gz
|
||||
ddd86485cf6d54e020e36f1c38c56e8b21b57c23a5d76250e15c1d16fed9caa5) # fix-75-yes-terminus.patch
|
||||
|
||||
## 3b1a44bc708d6711b182b32a16fabec6b3a293a2596a8dce79b51b2dad03cdda terminus-font-4.49.1-05-x86_64.pkg.tar.lz
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
# Maintainer: Johannes Löthberg <johannes@kyriasis.com>
|
||||
# Contributor: Alexander F Rødseth <xyproto@archlinux.org>
|
||||
# Contributor: Vesa Kaihlavirta <vegai@iki.fi>
|
||||
# Contributor: Kristoffer Fossgård <kfs1@online.no>
|
||||
# Contributor: clonejo <clonejo@shakik.de>
|
||||
# Contributor: Daniel Micay <danielmicay@gmail.com>
|
||||
|
||||
pkgname=terminus-font
|
||||
pkgver=4.49.1
|
||||
pkgrel=5
|
||||
|
||||
pkgdesc='Monospace bitmap font (for X11 and console)'
|
||||
url='http://terminus-font.sourceforge.net/'
|
||||
arch=('any')
|
||||
license=('GPL2' 'custom:OFL')
|
||||
makedepends=('xorg-bdftopcf' 'python' 'grub' 'freetype2')
|
||||
conflicts=('terminus-font-otb')
|
||||
replaces=('terminus-font-otb')
|
||||
source=("https://downloads.sourceforge.net/project/terminus-font/terminus-font-${pkgver%.1}/terminus-font-$pkgver.tar.gz"
|
||||
fix-75-yes-terminus.patch)
|
||||
sha256sums=('d961c1b781627bf417f9b340693d64fc219e0113ad3a3af1a3424c7aa373ef79'
|
||||
'ddd86485cf6d54e020e36f1c38c56e8b21b57c23a5d76250e15c1d16fed9caa5')
|
||||
|
||||
prepare() {
|
||||
cd "terminus-font-$pkgver"
|
||||
patch -p1 <"$srcdir"/fix-75-yes-terminus.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "terminus-font-$pkgver"
|
||||
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--x11dir=/usr/share/fonts/misc \
|
||||
--otbdir=/usr/share/fonts/misc \
|
||||
--psfdir=/usr/share/kbd/consolefonts
|
||||
make all otb
|
||||
# build grub fonts
|
||||
for i in *.bdf; do
|
||||
grub-mkfont -o "$(basename "$i" .bdf).pf2" "$i"
|
||||
done
|
||||
}
|
||||
|
||||
package() {
|
||||
make -C "terminus-font-$pkgver" DESTDIR="$pkgdir" install install-otb
|
||||
|
||||
install -Dm644 "$srcdir/terminus-font-$pkgver/75-yes-terminus.conf" \
|
||||
"$pkgdir/usr/share/fontconfig/conf.avail/75-yes-terminus.conf"
|
||||
install -Dm644 "$srcdir/terminus-font-$pkgver/OFL.TXT" \
|
||||
"$pkgdir/usr/share/licenses/terminus-font/LICENSE"
|
||||
|
||||
install -d "$pkgdir/usr/share/fontconfig/conf.default"
|
||||
ln -sr "$pkgdir/usr/share/fontconfig/conf.avail/75-yes-terminus.conf" \
|
||||
"$pkgdir/usr/share/fontconfig/conf.default/75-yes-terminus.conf"
|
||||
cd terminus-font-$pkgver
|
||||
for i in *.pf2; do
|
||||
install -D -m644 $i "$pkgdir/usr/share/grub/$i"
|
||||
done
|
||||
}
|
||||
|
||||
# vim:set ts=2 sw=2 et:
|
|
@ -0,0 +1 @@
|
|||
rm -rf {src,pkg,terminus-f*tar.gz}
|
|
@ -0,0 +1,5 @@
|
|||
xorg-bdftopcf
|
||||
python
|
||||
grub
|
||||
freetype2
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
--- a/75-yes-terminus.conf 2019-01-01 19:32:47.000000000 +0100
|
||||
+++ b/75-yes-terminus.conf 2019-01-01 19:41:28.323308293 +0100
|
||||
@@ -5,7 +5,7 @@
|
||||
<selectfont>
|
||||
<acceptfont>
|
||||
<pattern>
|
||||
- <patelt name="family"><string>Terminus</string></patelt>
|
||||
+ <patelt name="family"><string>xos4 Terminus</string></patelt>
|
||||
</pattern>
|
||||
</acceptfont>
|
||||
</selectfont>
|
|
@ -0,0 +1,6 @@
|
|||
|
||||
|
||||
real 0m30.527s
|
||||
user 0m33.311s
|
||||
sys 0m3.226s
|
||||
|
Loading…
Reference in New Issue