diff options
author | Ye Jingchen | 2019-10-22 20:31:38 +0800 |
---|---|---|
committer | Ye Jingchen | 2019-10-22 20:31:38 +0800 |
commit | 00653e42bd980119ff5d6076a58d2b396810cc28 (patch) | |
tree | 5e132e305c63e60ed78926f691f383de6522e89b | |
parent | f986ea5ebb12e3f8c4542aa69e0269104577d36e (diff) | |
download | aur-00653e42bd980119ff5d6076a58d2b396810cc28.tar.gz |
versioned LICENSE file
No more checksum mismatch!
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 16 |
2 files changed, 9 insertions, 12 deletions
@@ -1,15 +1,16 @@ pkgbase = ttf-sarasa-gothic pkgdesc = A CJK programming font based on Iosevka and Source Han Sans. (TTC) pkgver = 0.10.0 - pkgrel = 2 + pkgrel = 3 url = https://github.com/be5invis/Sarasa-Gothic arch = any license = custom:SIL Open Font License v1.1 - makedepends = curl depends = fontconfig depends = xorg-font-utils source = https://github.com/be5invis/Sarasa-Gothic/releases/download/v0.10.0/sarasa-gothic-ttc-0.10.0.7z + source = LICENSE-0.10.0::https://raw.githubusercontent.com/be5invis/Sarasa-Gothic/v0.10.0/LICENSE sha256sums = 2a8cad733d706b4f1677f91a1d9e97434c00583b662823692358edc90762eabc + sha256sums = 07e26208b78894948573d001a0133a8d071e161eba6ae65e2ab521fef311a429 pkgname = ttf-sarasa-gothic @@ -3,23 +3,19 @@ pkgname=ttf-sarasa-gothic pkgver=0.10.0 -pkgrel=2 +pkgrel=3 pkgdesc="A CJK programming font based on Iosevka and Source Han Sans. (TTC)" arch=('any') url="https://github.com/be5invis/Sarasa-Gothic" license=('custom:SIL Open Font License v1.1') depends=('fontconfig' 'xorg-font-utils') -makedepends=('curl') -source=("https://github.com/be5invis/Sarasa-Gothic/releases/download/v$pkgver/sarasa-gothic-ttc-$pkgver.7z") -sha256sums=('2a8cad733d706b4f1677f91a1d9e97434c00583b662823692358edc90762eabc') - -prepare() { - cd "$srcdir" - curl -O 'https://raw.githubusercontent.com/be5invis/Sarasa-Gothic/master/LICENSE' -} +source=("https://github.com/be5invis/Sarasa-Gothic/releases/download/v$pkgver/sarasa-gothic-ttc-$pkgver.7z" + "LICENSE-$pkgver::https://raw.githubusercontent.com/be5invis/Sarasa-Gothic/v${pkgver}/LICENSE") +sha256sums=('2a8cad733d706b4f1677f91a1d9e97434c00583b662823692358edc90762eabc' + '07e26208b78894948573d001a0133a8d071e161eba6ae65e2ab521fef311a429') package() { install -d "$pkgdir/usr/share/fonts/${pkgname:4}" install -m644 "$srcdir/"*.ttc "$pkgdir/usr/share/fonts/${pkgname:4}" - install -Dm644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + install -Dm644 "$srcdir/LICENSE-$pkgver" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } |