summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorcaltlgin2020-08-04 07:29:39 +1200
committercaltlgin2020-08-04 07:29:39 +1200
commita0a854f41ddd3f55c2ca32e8a8ff4f3fedcbae85 (patch)
tree9846ea3cee76e7deafe95b69d5fb6f98d37de6c6
parent6a0eae96ceadb1c75f4bf29f86b13931b3520370 (diff)
downloadaur-a0a854f41ddd3f55c2ca32e8a8ff4f3fedcbae85.tar.gz
Remove .install and dependencies
-rw-r--r--.SRCINFO11
-rw-r--r--PKGBUILD36
-rw-r--r--office-code-pro.install14
3 files changed, 19 insertions, 42 deletions
diff --git a/.SRCINFO b/.SRCINFO
index a847f04f180..abe4c80fb48 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,11 @@
pkgbase = office-code-pro
- pkgdesc = Office Code Pro [D] are a customized version of Source Code Pro for text editors and coding environments
+ pkgdesc = Customized version of Source Code Pro
pkgver = 1.004
- pkgrel = 2
+ pkgrel = 1
url = https://github.com/nathco/Office-Code-Pro
- install = office-code-pro.install
arch = any
- license = custom
- depends = fontconfig
- depends = xorg-font-utils
- source = https://github.com/nathco/Office-Code-Pro/archive/1.004.tar.gz
+ license = custom: SIL Open Font License 1.1
+ source = Office-Code-Pro-1.004.tar.gz::https://github.com/nathco/Office-Code-Pro/archive/1.004.tar.gz
sha256sums = 9bca923d17f6c47a586d8e4567d46ccfa58fb8b8e2247b5ee2a19da1597c58f6
pkgname = office-code-pro
diff --git a/PKGBUILD b/PKGBUILD
index 80412d6ed0c..44f54deb520 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,28 +1,22 @@
-# Maintainer: Javier Tia <javier.tia@gmail.com>
-pkgname=office-code-pro
-_srcname=Office-Code-Pro
-pkgver=1.004
-pkgrel=2
-depends=(fontconfig xorg-font-utils)
-pkgdesc="Office Code Pro [D] are a customized version of Source Code Pro for text editors and coding environments"
-url="https://github.com/nathco/Office-Code-Pro"
-license=(custom)
-arch=(any)
+# Maintainer: Caltlgin Stsodaat <contact@fossdaily.xyz>
+# Contributor: Javier Tia <javier.tia@gmail.com>
-source=("https://github.com/nathco/$_srcname/archive/$pkgver.tar.gz")
+_pkgname=Office-Code-Pro
+pkgname=${_pkgname,,}
+pkgver=1.004
+pkgrel=1
+pkgdesc='Customized version of Source Code Pro'
+arch=('any')
+url='https://github.com/nathco/Office-Code-Pro'
+license=('custom: SIL Open Font License 1.1')
+source=("${_pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
sha256sums=('9bca923d17f6c47a586d8e4567d46ccfa58fb8b8e2247b5ee2a19da1597c58f6')
-install=$pkgname.install
-
package() {
- install -Dm644 $srcdir/$_srcname-$pkgver/LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-
- install -d "$pkgdir/usr/share/fonts/OTF/"
- cd $srcdir/$_srcname-$pkgver/Fonts/Office\ Code\ Pro/OTF/
- install -t "$pkgdir/usr/share/fonts/OTF/" -m644 *.otf
-
- cd $srcdir/$_srcname-$pkgver/Fonts/Office\ Code\ Pro\ D/OTF/
- install -t "$pkgdir/usr/share/fonts/OTF/" -m644 *.otf
+ install -Dm644 -t "${pkgdir}/usr/share/fonts/OTF" "${_pkgname}-${pkgver}/Fonts/Office Code Pro/OTF/"*.otf
+ install -Dm644 -t "${pkgdir}/usr/share/fonts/OTF" "${_pkgname}-${pkgver}/Fonts/Office Code Pro D/OTF/"*.otf
+ install -Dm644 "${_pkgname}-${pkgver}/README.md" "${pkgdir}/usr/share/doc/${pkgname}/README.md"
+ install -Dm644 "${_pkgname}-${pkgver}/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
# vim:set ts=2 sw=2 et:
diff --git a/office-code-pro.install b/office-code-pro.install
deleted file mode 100644
index 79c6030606f..00000000000
--- a/office-code-pro.install
+++ /dev/null
@@ -1,14 +0,0 @@
-post_install() {
- echo Updating font cache...
- fc-cache >/dev/null -f
- mkfontscale /usr/share/fonts/TTF
- mkfontdir /usr/share/fonts/TTF
-}
-
-post_upgrade() {
- post_install
-}
-
-post_remove() {
- post_install
-}