diff options
author | caltlgin | 2020-08-10 15:43:04 +1200 |
---|---|---|
committer | caltlgin | 2020-08-10 15:43:04 +1200 |
commit | 3dae266ec1477ba0ccbd668e93a6bb0935bdc435 (patch) | |
tree | aa3f7a66b97925430446c096afd02cef371d907c | |
parent | a0a854f41ddd3f55c2ca32e8a8ff4f3fedcbae85 (diff) | |
download | aur-3dae266ec1477ba0ccbd668e93a6bb0935bdc435.tar.gz |
Correctly increment pkgrel. Tidy package function
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 11 |
2 files changed, 7 insertions, 6 deletions
@@ -1,7 +1,7 @@ pkgbase = office-code-pro pkgdesc = Customized version of Source Code Pro pkgver = 1.004 - pkgrel = 1 + pkgrel = 3 url = https://github.com/nathco/Office-Code-Pro arch = any license = custom: SIL Open Font License 1.1 @@ -4,7 +4,7 @@ _pkgname=Office-Code-Pro pkgname=${_pkgname,,} pkgver=1.004 -pkgrel=1 +pkgrel=3 pkgdesc='Customized version of Source Code Pro' arch=('any') url='https://github.com/nathco/Office-Code-Pro' @@ -13,10 +13,11 @@ source=("${_pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz") sha256sums=('9bca923d17f6c47a586d8e4567d46ccfa58fb8b8e2247b5ee2a19da1597c58f6') package() { - 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" + cd "${_pkgname}-${pkgver}" + install -Dm644 -t "${pkgdir}/usr/share/fonts/OTF" "Fonts/${_pkgname//-/ }/OTF/"*.otf + install -Dm644 -t "${pkgdir}/usr/share/fonts/OTF" "Fonts/${_pkgname//-/ } D/OTF/"*.otf + install -Dm644 -t "${pkgdir}/usr/share/doc/${pkgname}" 'README.md' + install -Dm644 'LICENSE.txt' "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } # vim:set ts=2 sw=2 et: |