summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Drexler2015-06-10 23:31:10 +0200
committerChristoph Drexler2015-06-10 23:31:10 +0200
commitb813c372a9a1bf61bda790921d95c88ec6346d61 (patch)
tree09e0e267cd936f1212347a5e156fd3c454a87eda
parent5abcb0c5cb64b7e0f4e391b7a940cad7e5109ba7 (diff)
downloadaur-b813c372a9a1bf61bda790921d95c88ec6346d61.tar.gz
replaces md5sums by sha256sums; improves license handling
-rw-r--r--PKGBUILD69
1 files changed, 42 insertions, 27 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 155129ab20c..7e67c4fcf9d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,11 +3,11 @@
pkgname=otf-adf
pkgver=20150406
-pkgrel=1
+pkgrel=2
pkgdesc="Open Type Fonts released by Arkandis Digital Foundry"
arch=('any')
url="http://arkandis.tuxfamily.org/adffonts.html"
-license=('GPL2')
+license=('custom:GPL with font exception')
groups=('adf-fonts')
depends=('fontconfig' 'xorg-mkfontdir' 'xorg-mkfontscale')
install=otf.install
@@ -33,34 +33,49 @@ http://arkandis.tuxfamily.org/fonts/SymbolADF.zip
http://arkandis.tuxfamily.org/fonts/Keypad-20101223.zip
)
-md5sums=('616027f748d7bb3ac017fb210990aacc'
- '4ede1e0d29128cb6a2363f27234f4da8'
- 'e45b27a1b2a799a1b5022a83a812b336'
- 'f244ff17954e5eaaa4ba2aca9e2cd573'
- '4f003c6b978096720da65d76e530beb2'
- '66a7bc74ab901c605b34e8811adfbd30'
- '38b23c1abe232815914ea7346c270fb1'
- 'b3c0b4fe19127bc93ab31382761b9ff3'
- '0b8cf18fabb6db0435af2326f96240fa'
- 'a67e51c4604feb3612b2e971f3eb7a43'
- 'cff539847028074fb52a58f4170d798e'
- '34ec5d3b0af9af317f734ca70d72fd96'
- '961d3a2bcee5666074b71ec34d086747'
- '7103b84368351a0527285402cea03d71'
- '6037f8b5ab5b979f790a39963b69f63c'
- '0d909f43a9dc2d1cf0785f6a93048edb'
- 'a481b57003078d503e73a121991127d8'
- '9ee8b15af0fe9e23d55b046ce735b70f'
- '55b9bbc646a385840878da37b31c6591')
+sha256sums=('49ba4bfe704187169c5782b0f309865d1fe63b1328090326e70f11ff3f25821d'
+ '2fc8476894e7a443960f90d0e50b2f26f4b211b95de53f07874ca6cf7b5eb1ec'
+ '5396f25cce3ea36b5ed2e3252a58858da95624361a4ba1fe53876a5f531a4724'
+ 'f82cbb563b616385a5d922462663f308b3dc4dfd280a670ab2221b7b940620aa'
+ 'ab7053d7fec89e34c190852073ba212e133858df007beb14ed68199efd32a858'
+ 'a74f1c9ecbdeb4751ac410f77dbe7210379dc87300c7a3afa19dcc354513f0bd'
+ '1b9f84d482d0140cebe01d7d7874e18e0c51049511ce4ddf71139a8d8806bc40'
+ '5a252bf7fbfca67aa421798f2fbe48c2f5d46208330633499553b308ef6d3bf2'
+ '64aec9785be5a9a22476f8ab84f5a25d11807f52d8fb6e0badd215128c8b1097'
+ '4ee5671b78b7f0c9b3d291971cb45dfa6812ba758e395da55cc617e1ea88a2a7'
+ '5d34da283bf348862fc8094871097789287244b20b5d673553a659a0a84ca81e'
+ '2fdf0e56e8f3a9408325bf9f904f36b561ce35b10d4eb35c1f0ef3f69c867af2'
+ '724a625e30f4317af5dc7b3e99a5de8128c23e025f83bd48977fa4dcb03ad35c'
+ '10bd7c07d78b9f37f4ef43f703541b9383fe0acfd636a763e9c20c0c559bbb4f'
+ 'c7860e371a1f8b04bc9c7eb5d1e4fae0fddb4cc4cb0565db30db205db464a840'
+ 'a084f5ee421d9c7aff53ff424b8df8108a6b49f93e1b0bed0f29730ce9ace889'
+ '97a4a5f71db57e80fa5edb73c27d736c9b5c4de972b5bc072bba5854d27fa571'
+ '4d8b7e7af9e3fa8149398f515d564200161fa3ca33423dee3b1e6b90d030e780'
+ '6fa99e657ed717dd32a6457bd5fab189dfb90d2a10aa5a454e609eb879978467')
build() {
- # nothing to do
- true
+ # nothing to do
+ true
}
package() {
- install -d ${pkgdir}/usr/share/fonts/OTF/
- install -Dm644 ${srcdir}/*/*.[Oo][Tt][Ff] ${pkgdir}/usr/share/fonts/OTF/
- install -Dm644 ${srcdir}/*/[Oo][Tt][Ff]/*.[Oo][Tt][Ff] ${pkgdir}/usr/share/fonts/OTF/
- install -Dm644 ${srcdir}/*/*/[Oo][Tt][Ff]/*.[Oo][Tt][Ff] ${pkgdir}/usr/share/fonts/OTF/
+ install -d "${pkgdir}/usr/share/fonts/OTF/"
+ install -Dm644 "${srcdir}"/*/*.[Oo][Tt][Ff] "${pkgdir}"/usr/share/fonts/OTF/
+ install -Dm644 "${srcdir}"/*/[Oo][Tt][Ff]/*.[Oo][Tt][Ff] "${pkgdir}"/usr/share/fonts/OTF/
+ install -Dm644 "${srcdir}"/*/*/[Oo][Tt][Ff]/*.[Oo][Tt][Ff] "${pkgdir}"/usr/share/fonts/OTF/
+
+ install -Dm644 "${srcdir}"/Accanthis*/NOTICE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ for font in ${source[@]}; do
+ font=$(basename $font)
+ font=${font%.zip}
+ font=${font%-*}
+ font=${font/Symbol/Symbols}
+ echo -ne "********************************************************************************\n\n" \
+ >> "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ cat "${srcdir}"/${font}*/NOTICE* >> "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ done
+
+ echo -ne "********************************************************************************\n\n" \
+ >> "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ cat "${srcdir}"/${font}*/COPYING >> "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}