diff options
author | Savino Jossi | 2017-12-22 10:40:20 +0100 |
---|---|---|
committer | Savino Jossi | 2017-12-22 10:40:20 +0100 |
commit | 6a6fb4dfdae10d034ac03dc8b466809f68914769 (patch) | |
tree | d1d625ebae85d181204327a81d00d0749d060085 | |
download | aur-6a6fb4dfdae10d034ac03dc8b466809f68914769.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 44 | ||||
-rw-r--r-- | scientifica-font.install | 13 |
3 files changed, 77 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..9de0fb25ac98 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = scientifica-font + pkgdesc = Tall and condensed bitmap font for geeks. + pkgver = 1.0.0 + pkgrel = 1 + url = http://sourceforge.net/projects/terminus-font/ + install = scientifica-font.install + arch = any + depends = xorg-fonts-encodings + depends = xorg-fonts-alias + depends = xorg-font-utils + depends = fontconfig + provides = scientifica-font + conflicts = scientifica-font + source = https://raw.githubusercontent.com/sjossi/scientifica-font/master/75-yes-scientifica.conf + source = https://raw.githubusercontent.com/NerdyPepper/scientifica/master/scientifica-11.bdf + md5sums = 527aa5ed9023e7d2face57d48cfce034 + md5sums = d134dfeeb97109ce3b582d3c89341035 + +pkgname = scientifica-font + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..1d2bf8eb2df2 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: Savino Jossi <savino.jossi@gmail.com> + +_pkgname=scientifica +pkgname=${_pkgname}-font +pkgver=1.0.0 +pkgrel=1 +pkgdesc='Tall and condensed bitmap font for geeks.' +arch=(any) +url=http://sourceforge.net/projects/terminus-font/ +depends=(xorg-fonts-encodings xorg-fonts-alias xorg-font-utils fontconfig) +conflicts=(scientifica-font) +provides=(scientifica-font) +install=scientifica-font.install +source=(https://raw.githubusercontent.com/sjossi/scientifica-font/master/75-yes-scientifica.conf + https://raw.githubusercontent.com/NerdyPepper/scientifica/master/scientifica-11.bdf) +md5sums=('527aa5ed9023e7d2face57d48cfce034' + 'd134dfeeb97109ce3b582d3c89341035') + +build() +{ +cat <<EOF > 75-yes-scientifica.conf +<?xml version="1.0"?> +<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> +<fontconfig> +<!-- Accept scientifica font --> + <selectfont> + <acceptfont> + <pattern> + <patelt name="family"><string>scientifica</string></patelt> + </pattern> + </acceptfont> + </selectfont> +</fontconfig> +EOF +} + +package() +{ + install -Dm644 scientifica-11.bdf "${pkgdir}/usr/share/fonts/misc/scientifica-11.bdf" + install -Dm644 75-yes-scientifica.conf "${pkgdir}/etc/fonts/conf.avail/75-yes-scientifica.conf" + install -dm755 "${pkgdir}/etc/fonts/conf.d" + install -dm755 "${pkgdir}/usr/share/fonts" + ln -sf -t "${pkgdir}/etc/fonts/conf.d" ../conf.avail/75-yes-scientifica.conf +} diff --git a/scientifica-font.install b/scientifica-font.install new file mode 100644 index 000000000000..cda58b10f546 --- /dev/null +++ b/scientifica-font.install @@ -0,0 +1,13 @@ +post_install() { + fc-cache -fs + mkfontscale usr/share/fonts/misc + mkfontdir usr/share/fonts/misc +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} |