summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJishnu Mohan2020-09-27 10:41:57 +0530
committerJishnu Mohan2020-09-27 10:41:57 +0530
commitb1e7f5083b118b04f871713ddc0c6866df3bba62 (patch)
treee329b306068f2b5f5ca0eb3e9887ad7087e7d7c6
parenta3341883c0ce52c81ed0598dd334944a942836a9 (diff)
downloadaur-b1e7f5083b118b04f871713ddc0c6866df3bba62.tar.gz
follow package guidelines
-rw-r--r--.SRCINFO11
-rwxr-xr-xPKGBUILD18
-rwxr-xr-xttf-malayalam-fonts.install15
3 files changed, 13 insertions, 31 deletions
diff --git a/.SRCINFO b/.SRCINFO
index b3f011a87ca..e3ae023a2d7 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,16 +1,15 @@
pkgbase = ttf-malayalam-font-anjalioldlipi
pkgdesc = This is Anjali Old Lipi, a font belonging to a set of TrueType and OpenType fonts released under the GNU General Public License for Malayalam Language.
pkgver = 7.1.0+20200101
- pkgrel = 1
+ pkgrel = 2
url = http://smc.org.in/fonts/
- install = ttf-malayalam-fonts.install
arch = any
- license = OFL1.1
- depends = fontconfig
- depends = xorg-font-utils
+ license = OFL
source = http://smc.org.in/downloads/fonts/anjalioldlipi/AnjaliOldLipi-Regular.ttf
- source = https://gitlab.com/smc/anjalioldlipi/raw/master/67-smc-anjalioldlipi.conf
+ source = https://gitlab.com/smc/fonts/anjalioldlipi/raw/master/LICENSE.txt
+ source = https://gitlab.com/smc/fonts/anjalioldlipi/raw/master/67-smc-anjalioldlipi.conf
sha256sums = f765eed0cbb3bdf39f160258493ce5de40ba6d2eb54d2152ff181c59d194b5b0
+ sha256sums = b3aac4ebf174f704a70a79e6525d496a6afed169da08afd9de4aeed4823c908c
sha256sums = 8f43ab55f2223ebf73f24355c17e163ec5664bc6bd5f03d9fe82381c66ca35ea
pkgname = ttf-malayalam-font-anjalioldlipi
diff --git a/PKGBUILD b/PKGBUILD
index d55727e44ab..3a07367b7d6 100755
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,22 +5,20 @@
pkgname=ttf-malayalam-font-anjalioldlipi
pkgver=7.1.0+20200101
-pkgrel=1
+pkgrel=2
pkgdesc="This is Anjali Old Lipi, a font belonging to a set of TrueType and OpenType fonts released under the GNU General Public License for Malayalam Language."
arch=(any)
url="http://smc.org.in/fonts/"
-license=("OFL1.1")
-depends=(fontconfig xorg-font-utils)
+license=("OFL")
source=("http://smc.org.in/downloads/fonts/anjalioldlipi/AnjaliOldLipi-Regular.ttf"
- "https://gitlab.com/smc/anjalioldlipi/raw/master/67-smc-anjalioldlipi.conf")
+ "https://gitlab.com/smc/fonts/anjalioldlipi/raw/master/LICENSE.txt"
+ "https://gitlab.com/smc/fonts/anjalioldlipi/raw/master/67-smc-anjalioldlipi.conf")
sha256sums=('f765eed0cbb3bdf39f160258493ce5de40ba6d2eb54d2152ff181c59d194b5b0'
+ 'b3aac4ebf174f704a70a79e6525d496a6afed169da08afd9de4aeed4823c908c'
'8f43ab55f2223ebf73f24355c17e163ec5664bc6bd5f03d9fe82381c66ca35ea')
-install=ttf-malayalam-fonts.install
-
package() {
- mkdir -p "${pkgdir}/usr/share/fonts/TTF" || return 1
- install -m644 *.ttf "${pkgdir}/usr/share/fonts/TTF"
- mkdir -p "${pkgdir}/etc/fonts/conf.d" || return 1
- install *.conf "${pkgdir}/etc/fonts/conf.d" || return 1
+ install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE.txt
+ install -Dm644 -t "$pkgdir/usr/share/fonts/" *.ttf
+ install -Dm644 -t "$pkgdir/etc/fonts/conf.d" *.conf
}
diff --git a/ttf-malayalam-fonts.install b/ttf-malayalam-fonts.install
deleted file mode 100755
index 26e912fe9c2..00000000000
--- a/ttf-malayalam-fonts.install
+++ /dev/null
@@ -1,15 +0,0 @@
-post_install() {
- echo "Running fc-cache to update font cache"
- fc-cache -fs
- mkfontscale usr/share/fonts/TTF
- mkfontdir usr/share/fonts/TTF
- echo "Finished updating font cache"
-}
-
-post_upgrade() {
- post_install
-}
-
-post_remove() {
- post_install
-}