diff options
author | hayao | 2021-06-13 22:13:15 +0900 |
---|---|---|
committer | hayao | 2021-06-13 22:13:15 +0900 |
commit | 9295bceb1f16c9ad84f44eb9ede4be8114c9e51a (patch) | |
tree | d9da2c06fab7dce33006e6b3fe0c488efce10211 | |
parent | cd77100bf77305593179aa266d69e3289366cfcb (diff) | |
download | aur-9295bceb1f16c9ad84f44eb9ede4be8114c9e51a.tar.gz |
[fix] : Simple PKGBUILD
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 40 |
2 files changed, 21 insertions, 34 deletions
@@ -1,12 +1,11 @@ pkgbase = filezilla-unstable-bin pkgdesc = Free, open source FTP, FTPS and SFTP client (Pre-built binary) pkgver = 3.54.0_rc1 - pkgrel = 1 + pkgrel = 2 url = https://filezilla-project.org arch = i686 arch = x86_64 license = GPL - makedepends = curl depends = pugixml depends = wxgtk3 depends = xdg-utils @@ -15,14 +14,10 @@ pkgbase = filezilla-unstable-bin depends = nettle depends = sqlite provides = filezilla - provides = filezilla-git conflicts = filezilla - conflicts = filezilla-git - conflicts = libfilezilla - source_i686 = FileZilla_3.54.0_rc1_i686-linux-gnu.tar.bz2::https://download.filezilla-project.org/client/FileZilla_3.54.0-rc1_i686-linux-gnu.tar.bz2 - sha512sums_i686 = SKIP - source_x86_64 = FileZilla_3.54.0_rc1_x86_64-linux-gnu.tar.bz2::https://download.filezilla-project.org/client/FileZilla_3.54.0-rc1_x86_64-linux-gnu.tar.bz2 - sha512sums_x86_64 = SKIP + source_i686 = https://download.filezilla-project.org/client/FileZilla_3.54.0-rc1_i686-linux-gnu.tar.bz2 + sha512sums_i686 = 400b6968660097aa818eb10a218e95077ddb734a4761660e32e8ccec45f3c8ed4014958a7de6eb3bdb9b1f065ab904d6be3afe711d0ea0c4150c19ec067f3648 + source_x86_64 = https://download.filezilla-project.org/client/FileZilla_3.54.0-rc1_x86_64-linux-gnu.tar.bz2 + sha512sums_x86_64 = b40b5a041bd319e792bb615b07753ec620661b567a205c6fc067b7fb4c255234baa784fef6b9d2ac2fc503c0efa7e7f1e618f1faab9ffda7d2501c0e5f9a4c7a pkgname = filezilla-unstable-bin - @@ -2,37 +2,28 @@ _pkgname=filezilla pkgname="${_pkgname}-unstable-bin" -pkgver=3.54.0_rc1 -pkgrel=1 +pkgver="3.54.0_rc1" +pkgrel="2" pkgdesc='Free, open source FTP, FTPS and SFTP client (Pre-built binary)' arch=('i686' 'x86_64') url='https://filezilla-project.org' license=('GPL') depends=('pugixml' 'wxgtk3' 'xdg-utils' 'gmp' 'gnutls' 'nettle' 'sqlite') -makedepends=('curl') -provides=("${_pkgname}" "${_pkgname}-git") -conflicts=("${_pkgname}" "${_pkgname}-git" "libfilezilla") -machine_arch="${CARCH}" - -for _arch in ${arch[@]}; do - eval "source_${_arch}=(FileZilla_${pkgver}_${_arch}-linux-gnu.tar.bz2::https://download.filezilla-project.org/client/FileZilla_${pkgver//_/-}_${_arch}-linux-gnu.tar.bz2)" - eval "sha512sums_${_arch}=( - '$( - _url="https://download.filezilla-project.org/client/FileZilla_${pkgver//_/-}.sha512" - _sum="$(curl --silent -L "${_url}" | grep "FileZilla_${pkgver}_${_arch}-linux-gnu.tar.bz2")" - if [[ ! "${?}" = 0 ]] || [[ ! -v "_sum" ]] || [[ -z "${_sum}" ]]; then - echo -n "SKIP" - else - echo -n "$(echo "${_sum}" | cut -d ' ' -f 1)" - fi - )' - )" -done +provides=("${_pkgname}") +conflicts=("${_pkgname}") + +# x86_64 +source_x86_64=("https://download.filezilla-project.org/client/FileZilla_${pkgver//_/-}_x86_64-linux-gnu.tar.bz2") +sha512sums_x86_64=('b40b5a041bd319e792bb615b07753ec620661b567a205c6fc067b7fb4c255234baa784fef6b9d2ac2fc503c0efa7e7f1e618f1faab9ffda7d2501c0e5f9a4c7a') + +# i686 +source_i686=("https://download.filezilla-project.org/client/FileZilla_${pkgver//_/-}_i686-linux-gnu.tar.bz2") +sha512sums_i686=('400b6968660097aa818eb10a218e95077ddb734a4761660e32e8ccec45f3c8ed4014958a7de6eb3bdb9b1f065ab904d6be3afe711d0ea0c4150c19ec067f3648') + package() { - rm -rf "${srcdir}/FileZilla_${pkgver}_${machine_arch}-linux-gnu.tar.bz2" mkdir -p "${pkgdir}/opt/" "${pkgdir}/usr/bin/" - cp -r "${srcdir}/"* "${pkgdir}/opt/" + cp -r "${srcdir}/FileZilla3" "${pkgdir}/opt/" mv "${pkgdir}/opt/FileZilla3/share" "${pkgdir}/usr/" @@ -41,8 +32,9 @@ package() { ln -s "${1}" "${2}" echo "Created symlink ${1} -> ${2}" } + for _fullpath in "${pkgdir}/opt/FileZilla3/bin/"* ;do _filename="$(basename "${_fullpath}")" - _make_link "/opt/FileZilla3/bin/${_filename}" "${pkgdir}/usr/bin/${_filename}" + _make_link "/opt/FileZilla3/bin/${_filename}" "${pkgdir}/usr/bin/${_filename}" done } |