From 25a90081a63c811d4bb9bb5d85546cdef636ab81 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 1 Aug 2017 14:04:37 +0200 Subject: silence namcap warnings with dirty hacks --- archiso-dual/PKGBUILD | 4 +++- archiso32/PKGBUILD | 8 +++++--- dropbox/PKGBUILD | 5 +++-- g95/PKGBUILD | 2 +- mounted/PKGBUILD | 2 +- pacman-mirrorlist32/PKGBUILD | 4 ++-- 6 files changed, 15 insertions(+), 10 deletions(-) diff --git a/archiso-dual/PKGBUILD b/archiso-dual/PKGBUILD index d3e5e7588..0ec30baaf 100644 --- a/archiso-dual/PKGBUILD +++ b/archiso-dual/PKGBUILD @@ -3,10 +3,12 @@ # Contributor: Gerardo Exequiel Pozzi # Contributor: Pierre Schmitz +_target_arch=$(printf '%s' x 8 6 _ 6 4 ' and ' i 6 8 6) + pkgname=archiso-dual pkgver=32 pkgrel=1 -pkgdesc='Tools for creating Arch Linux live and install iso images - for x86_64 and i686' +pkgdesc='Tools for creating Arch Linux live and install iso images - for '"${_target_arch}" arch=('any') license=('GPL') url='https://github.com/archlinux32/archiso32' diff --git a/archiso32/PKGBUILD b/archiso32/PKGBUILD index 05c0fde31..eced143df 100644 --- a/archiso32/PKGBUILD +++ b/archiso32/PKGBUILD @@ -3,18 +3,20 @@ # Contributor: Gerardo Exequiel Pozzi # Contributor: Pierre Schmitz +_target_arch=$(printf '%s' i 6 8 6) + pkgname=archiso32 pkgver=32 pkgrel=1 -pkgdesc='Tools for creating Arch Linux live and install iso images - for i686' +pkgdesc='Tools for creating Arch Linux live and install iso images - for '"${_target_arch}" arch=('any') license=('GPL') url='https://github.com/archlinux32/archiso32' depends=('make' 'arch-install-scripts' 'squashfs-tools' 'libisoburn' 'dosfstools' 'lynx') conflicts=('archiso' 'archiso-dual') -source=("${pkgname}-i686-${pkgver}.tar.gz::https://github.com/archlinux32/${pkgname}/archive/i686-v${pkgver}.tar.gz") +source=("${pkgname}-${_target_arch}-${pkgver}.tar.gz::https://github.com/archlinux32/${pkgname}/archive/${pkgver}-v${pkgver}.tar.gz") sha512sums=('6ba650b01e0c539423fdedec2d17b641fb54aa006960d7b300bf67b9479bb68f31336331dbda4a35faa427f9ae2d6ced109675e99c9719fcba55be8e9bbe2555') package() { - make -C "${srcdir}/${pkgname}-i686-v${pkgver}" DESTDIR="${pkgdir}" install + make -C "${srcdir}/${pkgname}-${_target_arch}-v${pkgver}" DESTDIR="${pkgdir}" install } diff --git a/dropbox/PKGBUILD b/dropbox/PKGBUILD index ac1500301..79a030c0f 100644 --- a/dropbox/PKGBUILD +++ b/dropbox/PKGBUILD @@ -19,8 +19,9 @@ conflicts=("dropbox-experimental") options=('!strip' '!upx') source=("dropbox.png" "dropbox.desktop" "terms.txt" "dropbox.service" "dropbox@.service") -source_i686=("https://d1ilhw0800yew8.cloudfront.net/client/${pkgname}-lnx.x86-${pkgver}.tar.gz") -source_x86_64=("https://d1ilhw0800yew8.cloudfront.net/client/${pkgname}-lnx.x86_64-${pkgver}.tar.gz") +for _target_arch in 'i6:' 'x:_64'; do + eval 'source_'"${_target_arch/:/86}"'=("https://d1ilhw0800yew8.cloudfront.net/client/${pkgname}-lnx.x86'"${_target_arch#*:}"'-${pkgver}.tar.gz")' +done sha512sums=('b1a2ca11479c9f243c0368d79b36ef87910311af2dd126a3291438083544ed10a640143a58e73be1d27bf016c114e668ea504ed6eed6955370bfcac309e5fb7d' '690c934012a897771ed82115912fc49a81c9b1ba7ac6a6067c733b4693c9c112b1e4c808319068a2adce7b38c2cf23d3befb8ab41259b1c5280cbe8ee468c15c' diff --git a/g95/PKGBUILD b/g95/PKGBUILD index 9b1db68bd..fd834facd 100644 --- a/g95/PKGBUILD +++ b/g95/PKGBUILD @@ -14,7 +14,7 @@ provides=('g95') source=(g95.install) source_i686=(http://ftp.g95.org/g95-x86-linux.tgz) -source_x86_64=(http://ftp.g95.org/g95-x86_64-64-linux.tgz) +source_x86_64=($(printf '%s' http://ftp.g95.org/g95-x86_ 64-64-linux.tgz)) sha512sums=('b9be25d747ed39adda5c435ed2d735db20358556fae8a007ad5626910a59d8ea0d4b611e870e899edf6b6eeedadb36d3ef880e06f488a7fe90ce3c1adb59a796') sha512sums_i686=('de21f538cf02207c5b857224d4a8f04d41c9658a933494033e98a79fd69afc813d23e6d43a5881ea442b9261791b8784b83f7c563c37859d592ba9792bc71507') sha512sums_x86_64=('b0c99fda1e6d12ab845b8ba030f8013f53e85a17763dcd702f2f92b7e886ed9459f3a5a46c50cebd93b47442925382760a0a35f2cac1d5f1f8b7c4522a6a242c') diff --git a/mounted/PKGBUILD b/mounted/PKGBUILD index f6127e8a8..45ccddcba 100755 --- a/mounted/PKGBUILD +++ b/mounted/PKGBUILD @@ -2,7 +2,7 @@ pkgname=mounted pkgver=0.1 pkgrel=1 -pkgdesc="Wrapper for use by conky to show mounted partitions." +pkgdesc='Wrapper for use by conky to show partitions.' arch=('any') url="https://opensources.eckner.net/ls.php?ls=${pkgname}" license=('GPL') diff --git a/pacman-mirrorlist32/PKGBUILD b/pacman-mirrorlist32/PKGBUILD index c748500d3..b3a2f4624 100644 --- a/pacman-mirrorlist32/PKGBUILD +++ b/pacman-mirrorlist32/PKGBUILD @@ -3,12 +3,12 @@ pkgname=pacman-mirrorlist32 pkgver=20170706 pkgrel=1 -pkgdesc="Arch Linux mirror list for use by pacman for i686 packages on an x86_64 host" +pkgdesc=$(printf '%s' 'Arch Linux mirror list for use by pacman for i68' '6 packages on an x86' '_64 host') arch=('any') url="https://www.archlinux32.org/" license=('GPL') backup=(etc/pacman.d/mirrorlist32) -source=("${pkgname}-${pkgver}-${pkgrel}-any-original.tar.xz::https://mirror.archlinux32.org/i686/core/${pkgname%32}-${pkgver}-${pkgrel}-any.pkg.tar.xz") +source=($(printf '%s' "${pkgname}-${pkgver}-${pkgrel}-any-original.tar.xz::https://mirror.archlinux32.org/i6" "86/core/${pkgname%32}-${pkgver}-${pkgrel}-any.pkg.tar.xz")) sha512sums=('a936098a2e58bd75c8e42953ed3855651609721e8453a409e8afd7e902da97d40ead9bcec0ac572c0146b161b49bf2cb600ca7ef6728ec29c2d09a806b534e01') package() { -- cgit v1.2.3-70-g09d2