diff options
author | copygirl | 2018-01-31 09:01:47 +0100 |
---|---|---|
committer | copygirl | 2018-01-31 09:01:47 +0100 |
commit | 0e386d2c732bc6b24a7b2e2f5586358be4ee3883 (patch) | |
tree | 55fa5529eb9d720107bb5de1908d57bdfcab33b8 /PKGBUILD | |
parent | cb21164f0616464aff7b5fd4e63da0261794f1ec (diff) | |
download | aur-0e386d2c732bc6b24a7b2e2f5586358be4ee3883.tar.gz |
Patch assets containing non-lowercase letters
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -25,6 +25,15 @@ package() { install -Dm 644 ${pkgname}.desktop ${pkgdir}/usr/share/applications/ # Copy fonts install -Dm 644 ${pkgname}/assets/fonts/*.ttf ${pkgdir}/usr/share/fonts/TTF/ + # Create symbolic links for any assets containing non-lowercase letters + IFS=$(echo -en "\n\b") # Loop on newlines, not spaces + for file in $(find ${pkgname}/assets/ -not -path "*/fonts/*" -regex ".*/.*[A-Z].*"); do + filename="$(basename -- "$file")" + # Check if filename is not the same as itself lowercased + if [ "$filename" != "${filename,,}" ]; then + ln -sf "$filename" "${file%/*}/${filename,,}" + fi + done # Move application files mv ${pkgname} ${pkgdir}/usr/share/${pkgname} } |