Package Details: lucidglyph 0.11.0-2

Git Clone URL: https://aur.archlinux.org/lucidglyph.git (read-only, click to copy)
Package Base: lucidglyph
Description: None
Upstream URL: https://github.com/maximilionus/lucidglyph
Keywords: freetype, freetype2-macos lucidglyph,
Licenses: GPL-3.0
Submitter: victorqueirozg
Maintainer: victorqueirozg
Last Packager: victorqueirozg
Votes: 0
Popularity: 0.000000
First Submitted: 2025-05-30 15:50 (UTC)
Last Updated: 2025-05-30 16:15 (UTC)

Latest Comments

ImperatorStorm commented on 2025-06-11 20:12 (UTC)

Patch to bring this more into line with https://wiki.archlinux.org/title/Arch_package_guidelines

diff --git a/PKGBUILD b/PKGBUILD
index 82458c0..cc9bf5b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,81 +1,28 @@
-# The name of the folder that contains the source files
-folder_name="lucidglyph"
-
+# Maintainer: victorqueirozg
 pkgname=("lucidglyph")
 pkgver=0.11.0
-pkgrel=2
+pkgrel=3
 arch=('any')
-description='Carefully tuned adjustments designed to improve font rendering on Linux systems packaged for Arch Linux. It is patched to install the package globally and deal with an individual file at `/etc/environment.d` file, unlike the original that manually patches `/etc/environment` file directly.'
+pkgdesc='Carefully tuned adjustments designed to improve font rendering on Linux systems.'
 source=(
-  "$folder_name::git+https://github.com/maximilionus/lucidglyph#tag=v$pkgver"
-  "0001-allow-changing-uninstall-file-absolute-path.patch"
-  "0002-allow-changing-absolute-environment-file-destination.patch"
+  "$pkgname::git+https://github.com/maximilionus/lucidglyph#tag=v$pkgver"
 )
 validpgpkeys=(
   "B7E510C142B88F4B"
 )
-md5sums=(
-  'SKIP'
-  # ./0001-allow-changing-uninstall-file-absolute-path.patch
-  'd8acbd5c286a8d3fcc9bfb523e626a5a'
-  # ./0002-allow-changing-absolute-environment-file-destination.patch
-  'bad5d9e406fbccfd55cf56478d73ed56'
-)
-sha512sums=(
-  'SKIP'
-  # ./0001-allow-changing-uninstall-file-absolute-path.patch
-  '79ac53609f0fe97f56202ea12f9a7f755c7edd6de284b7537ed61ab4066228256baae47447dfe8c8f35964418a457ec8c67207fa7b7b37891b675c572169be5b'
-  # ./0002-allow-changing-absolute-environment-file-destination.patch
-  'bd7574b55f26a4482b6dc9a5e6da38d3133f0b24070ec7b399e3c482d5dd662a21a6db53bba3ab3f17dad86d6cf993318e3eaf0a614996c9d49b97f5c3bc2d4d'
-)
+sha512sums=('f074dbfe51046d5d54c83e16ba77fca76ac36f995067adc304f6bba3cc36ec19a52f7f8cccbeaa4610e0f77842f2f685eea29c4af52f56558c72ab16172e5043')
 makedepends=('git')
 depends=(
   "fontconfig"
   "pam"
   "freetype2"
 )
-license=("GPL-3.0")
+license=("GPL-3.0-only")
 url="https://github.com/maximilionus/lucidglyph"

-build() {
-  cd "$srcdir/$folder_name" || exit 1
-
-  local patch_files
-  patch_files=(
-    "$srcdir/0001-allow-changing-uninstall-file-absolute-path.patch"
-    "$srcdir/0002-allow-changing-absolute-environment-file-destination.patch"
-  )
-
-  for patch_file in "${patch_files[@]}"; do
-    patch -p1 <"$patch_file" || exit 1
-  done
-}
-
 package() {
-  cd "$srcdir/$folder_name" || exit 1
-
-  local lucid_glyph_environment_file
-  lucid_glyph_environment_file="$pkgdir/etc/environment.d/lucidglyph.conf"
-
-  # Create the directory if it doesn't exist
-  install -d "$(dirname "$lucid_glyph_environment_file")"
-
-  local uninstaller_file_location
-  # Point it to `/dev/null` to avoid having to delete the file afterwards
-  uninstaller_file_location="/tmp/lucidglyph-uninstaller"
-
-  local env_args
-  env_args=(
-    "DEST_UNINSTALL_FILE_ABSOLUTE_PATH=$uninstaller_file_location"
-    "DEST_ENVIRONMENT=$lucid_glyph_environment_file"
-    "DESTDIR=$pkgdir"
-  )
-
-  env "${env_args[@]}" ./lucidglyph.sh install || exit 1
-
-  # Remove /usr/share/lucidglyph/info
-  rm --verbose "$pkgdir/usr/share/lucidglyph/info"
-
-  # Remove empty files and directories
-  find "$pkgdir" -empty -delete
+  cd "$srcdir/$pkgname"
+  mkdir -p "$pkgdir"/etc/environment.d/ "$pkgdir"/etc/fonts/conf.d/
+  install -vDm644 src/fontconfig/* "$pkgdir"/etc/fonts/conf.d/
+  install -vDm644 src/environment/* "$pkgdir"/etc/environment.d/
 }