initial import
This commit is contained in:
43
xenocara-bdftopcf/PKGBUILD
Normal file
43
xenocara-bdftopcf/PKGBUILD
Normal file
@@ -0,0 +1,43 @@
|
||||
# Maintainer: Jesus E. <heckyel@riseup.net>
|
||||
|
||||
# Based on xorg-bdftopcf package
|
||||
|
||||
pkgname=xenocara-bdftopcf
|
||||
_openbsdver=6.9
|
||||
pkgver=1.1
|
||||
pkgrel=3
|
||||
pkgdesc="Convert X font from Bitmap Distribution Format to Portable Compiled Format, provided by Xenocara"
|
||||
arch=(i686 x86_64)
|
||||
url="https://www.xenocara.org"
|
||||
license=('X11')
|
||||
depends=('glibc')
|
||||
makedepends=('xenocara-util-macros' 'xenocara-proto')
|
||||
groups=('xenocara-apps' 'xenocara' 'xorg-apps' 'xorg')
|
||||
provides=('xorg-bdftopcf')
|
||||
conflicts=('xorg-bdftopcf')
|
||||
replaces=('xorg-bdftopcf')
|
||||
source=(https://repo.hyperbola.info:50000/sources/xenocara-libre/$_openbsdver/app/bdftopcf-$pkgver.tar.lz{,.sig}
|
||||
remove-forced-openbsd-unveil-and-openbsd-pledge-support.patch)
|
||||
sha512sums=('f506d87b28b804672fa153a130a35c46bab70d78c22f9807da5fe845316efab0250540d953e372f0df37741f00c0291a96933667c420e4f4b0b64a86a2811119'
|
||||
'SKIP'
|
||||
'1cac6524da1ebdfb2657a84b459e830bda0c7d17917bf57c4bb70ba7c47fd0d9e58d6226a2e0bd6bf6a6a306f00d2a480b038e4caa29e3ddeb251d3b40efb910')
|
||||
validpgpkeys=('C92BAA713B8D53D3CAE63FC9E6974752F9704456') # André Silva
|
||||
|
||||
prepare() {
|
||||
cd "xenocara-$_openbsdver/app/bdftopcf"
|
||||
patch -p1 -i "$srcdir/remove-forced-openbsd-unveil-and-openbsd-pledge-support.patch"
|
||||
autoreconf -vfi
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "xenocara-$_openbsdver/app/bdftopcf"
|
||||
./configure --prefix=/usr
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "xenocara-$_openbsdver/app/bdftopcf"
|
||||
make DESTDIR="$pkgdir" install
|
||||
|
||||
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
diff --git a/bdftopcf.c b/bdftopcf.c
|
||||
index 720e14e..6f9e96b 100644
|
||||
--- a/bdftopcf.c
|
||||
+++ b/bdftopcf.c
|
||||
@@ -39,7 +39,6 @@ from The Open Group.
|
||||
#include "bdfint.h"
|
||||
#include "pcf.h"
|
||||
#include <stdio.h>
|
||||
-#include <unistd.h>
|
||||
#include <X11/Xos.h>
|
||||
|
||||
int
|
||||
@@ -159,38 +158,6 @@ main(int argc, char *argv[])
|
||||
}
|
||||
argv++;
|
||||
}
|
||||
-
|
||||
- if (input_name) {
|
||||
- if (unveil(input_name, "r") == -1) {
|
||||
- fprintf(stderr, "%s: could not unveil %s\n",
|
||||
- program_name, input_name);
|
||||
- exit(1);
|
||||
- }
|
||||
- }
|
||||
- if (output_name) {
|
||||
- if (unveil(output_name, "rwc") == -1) {
|
||||
- fprintf(stderr, "%s: could not unveil %s\n",
|
||||
- program_name, output_name);
|
||||
- exit(1);
|
||||
- }
|
||||
- if (pledge("stdio rpath wpath cpath", NULL) == -1) {
|
||||
- fprintf(stderr, "%s: could not pledge\n", program_name);
|
||||
- exit(1);
|
||||
- }
|
||||
- }
|
||||
- if (input_name && !output_name) {
|
||||
- if (pledge("stdio rpath", NULL) == -1) {
|
||||
- fprintf(stderr, "%s: could not pledge\n", program_name);
|
||||
- exit(1);
|
||||
- }
|
||||
- }
|
||||
- if (!input_name && !output_name) {
|
||||
- if (pledge("stdio", NULL) == -1) {
|
||||
- fprintf(stderr, "%s: could not pledge\n", program_name);
|
||||
- exit(1);
|
||||
- }
|
||||
- }
|
||||
-
|
||||
if (input_name) {
|
||||
input = FontFileOpen(input_name);
|
||||
if (!input) {
|
||||
Reference in New Issue
Block a user