me

/

vinix-ports Public
382 commits 0 issues 0 pull requests 1 contributor Discussions Projects Snippets LOC history Platform CI

Build X11 cursor, bitmap fonts and encoding tables

diviocity committed 6 days ago · bae611bce939ec89f434a6b22d07986e1a537e57 View patch
Unverified signature 3 files changed +85 -0
encodings/PKGBUILD.vile new file +24 -0

@@ -0,0 +1,24 @@

1+defpkgbuild(encodings,

2+ #:pkgname, "encodings",

3+ #:pkgver, "1.0.7",

4+ #:pkgrel, 1,

5+ #:pkgdesc, "X11 font encoding tables",

6+ #:arch, [#:any],

7+ #:license, "Public Domain",

8+ #:url, "https://www.x.org/",

9+ #:makedepends, ["mkfontscale"],

10+ #:source, ["https://xorg.freedesktop.org/archive/individual/font/encodings-1.0.7.tar.xz"],

11+ #:sha256sums, ["3a39a9f43b16521cdbd9f810090952af4f109b44fa7a865cd555f8febcea70a4"],

12+ #:build, fn() {

13+ root := get-environment-variable("VPAC_MAKEPKG_ROOT")

14+ run("env", string-append("MKFONTSCALE=", root, "/usr/bin/mkfontscale"),

15+ "encodings-1.0.7/configure", "--prefix=/usr", "--with-encodingsdir=/usr/share/fonts/X11/encodings")

16+ run("make", string-append("MKFONTSCALE=vinix-run ", root, "/usr/bin/mkfontscale"))

17+ },

18+ #:package, fn() {

19+ root := get-environment-variable("VPAC_MAKEPKG_ROOT")

20+ run("make", "install", string-append("MKFONTSCALE=vinix-run ", root, "/usr/bin/mkfontscale"),

21+ string-append("DESTDIR=", pkgdir()))

22+ run("test", "-s", string-append(pkgdir(), "/usr/share/fonts/X11/encodings/encodings.dir"))

23+ run("install", "-Dm644", "encodings-1.0.7/COPYING", string-append(pkgdir(), "/usr/share/licenses/encodings/COPYING"))

24+ })

font-cursor-misc/PKGBUILD.vile new file +29 -0

@@ -0,0 +1,29 @@

1+defpkgbuild(font-cursor-misc,

2+ #:pkgname, "font-cursor-misc",

3+ #:pkgver, "1.0.4",

4+ #:pkgrel, 1,

5+ #:pkgdesc, "X.org misc font",

6+ #:arch, [#:any],

7+ #:license, "Public Domain",

8+ #:url, "https://www.x.org/",

9+ #:depends, ["font-alias", "mkfontscale"],

10+ #:makedepends, ["bdftopcf"],

11+ #:source, ["https://xorg.freedesktop.org/archive/individual/font/font-cursor-misc-1.0.4.tar.xz"],

12+ #:sha256sums, ["25d9c9595013cb8ca08420509993a6434c917e53ca1fec3f63acd45a19d4f982"],

13+

14+ #:build, fn() {

15+ root := get-environment-variable("VPAC_MAKEPKG_ROOT")

16+ run("env", "PKG_CONFIG_PATH=", string-append("PKG_CONFIG_SYSROOT_DIR=", root),

17+ string-append("PKG_CONFIG_LIBDIR=", root, "/usr/lib/pkgconfig:", root, "/usr/share/pkgconfig"),

18+ string-append("BDFTOPCF=", root, "/usr/bin/bdftopcf"), "MKFONTDIR=/usr/bin/true", "MKFONTSCALE=/usr/bin/true",

19+ "font-cursor-misc-1.0.4/configure", "--prefix=/usr", "--with-fontdir=/usr/share/fonts/X11/misc", "--with-compression=gzip")

20+ run("make", string-append("BDFTOPCF=vinix-run ", root, "/usr/bin/bdftopcf"))

21+ },

22+ #:check, fn() {

23+ run("gzip", "-t", "cursor.pcf.gz")

24+ },

25+ #:package, fn() {

26+ run("make", "install", "MKFONTDIR=:", "MKFONTSCALE=:", "FCCACHE=:", string-append("DESTDIR=", pkgdir()))

27+ run("install", "-Dm644", "font-cursor-misc-1.0.4/COPYING",

28+ string-append(pkgdir(), "/usr/share/licenses/font-cursor-misc/COPYING"))

29+ })

font-misc-misc/PKGBUILD.vile new file +32 -0

@@ -0,0 +1,32 @@

1+defpkgbuild(font-misc-misc,

2+ #:pkgname, "font-misc-misc",

3+ #:pkgver, "1.1.3",

4+ #:pkgrel, 1,

5+ #:pkgdesc, "X.org misc font",

6+ #:arch, [#:any],

7+ #:license, "Public Domain",

8+ #:url, "https://www.x.org/",

9+ #:depends, ["font-alias", "mkfontscale"],

10+ #:makedepends, ["bdftopcf", "font-util"],

11+ #:source, ["https://xorg.freedesktop.org/archive/individual/font/font-misc-misc-1.1.3.tar.xz"],

12+ #:sha256sums, ["79abe361f58bb21ade9f565898e486300ce1cc621d5285bec26e14b6a8618fed"],

13+

14+ #:build, fn() {

15+ root := get-environment-variable("VPAC_MAKEPKG_ROOT")

16+ run("env", "PKG_CONFIG_PATH=", string-append("PKG_CONFIG_SYSROOT_DIR=", root),

17+ string-append("PKG_CONFIG_LIBDIR=", root, "/usr/lib/pkgconfig:", root, "/usr/share/pkgconfig"),

18+ string-append("BDFTOPCF=", root, "/usr/bin/bdftopcf"), "MKFONTDIR=/usr/bin/true", "MKFONTSCALE=/usr/bin/true",

19+ string-append("UCS2ANY=", root, "/usr/bin/ucs2any"), string-append("BDFTRUNCATE=", root, "/usr/bin/bdftruncate"),

20+ "font-misc-misc-1.1.3/configure", "--prefix=/usr", "--with-fontdir=/usr/share/fonts/X11/misc", "--with-compression=gzip")

21+ run("make", string-append("BDFTOPCF=vinix-run ", root, "/usr/bin/bdftopcf"),

22+ string-append("UCS2ANY=vinix-run ", root, "/usr/bin/ucs2any"), string-append("BDFTRUNCATE=vinix-run ", root, "/usr/bin/bdftruncate"),

23+ string-append("UTIL_DIR=", root, "/usr/share/fonts/X11/util"))

24+ },

25+ #:check, fn() {

26+ run("gzip", "-t", "6x13.pcf.gz")

27+ },

28+ #:package, fn() {

29+ run("make", "install", "MKFONTDIR=:", "MKFONTSCALE=:", "FCCACHE=:", string-append("DESTDIR=", pkgdir()))

30+ run("install", "-Dm644", "font-misc-misc-1.1.3/COPYING",

31+ string-append(pkgdir(), "/usr/share/licenses/font-misc-misc/COPYING"))

32+ })