initial import
This commit is contained in:
41
xenocara-font-alias/PKGBUILD
Normal file
41
xenocara-font-alias/PKGBUILD
Normal file
@@ -0,0 +1,41 @@
|
||||
# Maintainer: Jesus E. <heckyel@riseup.net>
|
||||
|
||||
# Based on xorg-fonts-alias package
|
||||
|
||||
pkgname=xenocara-font-alias
|
||||
_openbsdver=6.9
|
||||
pkgver=1.0.3
|
||||
pkgrel=3
|
||||
pkgdesc="Xenocara font alias files"
|
||||
arch=('any')
|
||||
url="https://www.xenocara.org"
|
||||
license=('Expat')
|
||||
makedepends=('xenocara-util-macros')
|
||||
provides=('xorg-fonts-alias')
|
||||
conflicts=('xorg-fonts-alias')
|
||||
replaces=('xorg-fonts-alias')
|
||||
source=(https://repo.hyperbola.info:50000/sources/xenocara-libre/$_openbsdver/font/alias-$pkgver.tar.lz{,.sig}
|
||||
fontrootdir-workaround.patch)
|
||||
sha512sums=('2a4747638218ac2b11a3252d0cba3517145f703fea1dbb2eba137c31394844292a391e46159b89e29cd54787fc32e17bc2712cc1d36dabb63a15a9050607bba2'
|
||||
'SKIP'
|
||||
'f2656a18f2706beaf235454bd6ea287fbb4bc5b05cc67fc7e64d623a1755c0e6a491e1e42974001c0de47c952188dcc18624a8e46b4bd58858edc236a228ee77')
|
||||
validpgpkeys=('C92BAA713B8D53D3CAE63FC9E6974752F9704456') # André Silva
|
||||
|
||||
prepare() {
|
||||
cd "xenocara-$_openbsdver/font/alias"
|
||||
patch -p1 -i "$srcdir/fontrootdir-workaround.patch"
|
||||
autoreconf -vfi
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "xenocara-$_openbsdver/font/alias"
|
||||
./configure --prefix=/usr --with-fontrootdir=/usr/share/fonts
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "xenocara-$_openbsdver/font/alias"
|
||||
make DESTDIR="$pkgdir" install
|
||||
|
||||
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
|
||||
}
|
||||
88
xenocara-font-alias/fontrootdir-workaround.patch
Normal file
88
xenocara-font-alias/fontrootdir-workaround.patch
Normal file
@@ -0,0 +1,88 @@
|
||||
diff --git a/100dpi/Makefile.in b/100dpi/Makefile.in
|
||||
index 0071db4..d5925ff 100644
|
||||
--- a/100dpi/Makefile.in
|
||||
+++ b/100dpi/Makefile.in
|
||||
@@ -200,6 +200,7 @@ EGREP = @EGREP@
|
||||
EXEEXT = @EXEEXT@
|
||||
FILE_MAN_DIR = @FILE_MAN_DIR@
|
||||
FILE_MAN_SUFFIX = @FILE_MAN_SUFFIX@
|
||||
+FONTROOTDIR = @FONTROOTDIR@
|
||||
GREP = @GREP@
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_CMD = @INSTALL_CMD@
|
||||
diff --git a/75dpi/Makefile.in b/75dpi/Makefile.in
|
||||
index 0cc3b3b..e7b35b9 100644
|
||||
--- a/75dpi/Makefile.in
|
||||
+++ b/75dpi/Makefile.in
|
||||
@@ -200,6 +200,7 @@ EGREP = @EGREP@
|
||||
EXEEXT = @EXEEXT@
|
||||
FILE_MAN_DIR = @FILE_MAN_DIR@
|
||||
FILE_MAN_SUFFIX = @FILE_MAN_SUFFIX@
|
||||
+FONTROOTDIR = @FONTROOTDIR@
|
||||
GREP = @GREP@
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_CMD = @INSTALL_CMD@
|
||||
diff --git a/Makefile.in b/Makefile.in
|
||||
index 9a567bb..b6add79 100644
|
||||
--- a/Makefile.in
|
||||
+++ b/Makefile.in
|
||||
@@ -251,6 +251,7 @@ EGREP = @EGREP@
|
||||
EXEEXT = @EXEEXT@
|
||||
FILE_MAN_DIR = @FILE_MAN_DIR@
|
||||
FILE_MAN_SUFFIX = @FILE_MAN_SUFFIX@
|
||||
+FONTROOTDIR = @FONTROOTDIR@
|
||||
GREP = @GREP@
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_CMD = @INSTALL_CMD@
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index c3567ff..58ad8a5 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -36,7 +36,22 @@ XORG_DEFAULT_OPTIONS
|
||||
|
||||
AC_PROG_INSTALL
|
||||
|
||||
-XORG_FONTROOTDIR
|
||||
+
|
||||
+# Sets FONTROOTDIR to the root directory for font files. Uses the first
|
||||
+# found from:
|
||||
+# --with-fontrootdir
|
||||
+# ${datadir}/fonts/X11
|
||||
+AC_MSG_CHECKING([for root directory for font files])
|
||||
+AC_ARG_WITH(fontrootdir,
|
||||
+ AS_HELP_STRING([--with-fontrootdir=DIR],
|
||||
+ [Path to root directory for font files]),
|
||||
+ [FONTROOTDIR="$withval"])
|
||||
+# if --with-fontrootdir not specified...
|
||||
+if test "x${FONTROOTDIR}" = "x"; then
|
||||
+ FONTROOTDIR="${datadir}/fonts/X11"
|
||||
+fi
|
||||
+AC_SUBST(FONTROOTDIR)
|
||||
+AC_MSG_RESULT([${FONTROOTDIR}])
|
||||
|
||||
AC_ARG_WITH(top-fontdir, AC_HELP_STRING([--with-top-fontdir=<pathname>],
|
||||
[Obsolete: use --with-fontrootdir instead]),
|
||||
diff --git a/cyrillic/Makefile.in b/cyrillic/Makefile.in
|
||||
index 4320ec9..52037d5 100644
|
||||
--- a/cyrillic/Makefile.in
|
||||
+++ b/cyrillic/Makefile.in
|
||||
@@ -200,6 +200,7 @@ EGREP = @EGREP@
|
||||
EXEEXT = @EXEEXT@
|
||||
FILE_MAN_DIR = @FILE_MAN_DIR@
|
||||
FILE_MAN_SUFFIX = @FILE_MAN_SUFFIX@
|
||||
+FONTROOTDIR = @FONTROOTDIR@
|
||||
GREP = @GREP@
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_CMD = @INSTALL_CMD@
|
||||
diff --git a/misc/Makefile.in b/misc/Makefile.in
|
||||
index 0474258..e738c51 100644
|
||||
--- a/misc/Makefile.in
|
||||
+++ b/misc/Makefile.in
|
||||
@@ -200,6 +200,7 @@ EGREP = @EGREP@
|
||||
EXEEXT = @EXEEXT@
|
||||
FILE_MAN_DIR = @FILE_MAN_DIR@
|
||||
FILE_MAN_SUFFIX = @FILE_MAN_SUFFIX@
|
||||
+FONTROOTDIR = @FONTROOTDIR@
|
||||
GREP = @GREP@
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_CMD = @INSTALL_CMD@
|
||||
Reference in New Issue
Block a user