mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-04 05:37:15 +08:00
39 lines
1.3 KiB
Bash
39 lines
1.3 KiB
Bash
# Maintainer: UtG <utg[dot]chakra.linux[at]gmail[dot]com>
|
|
# contributor: abveritas[at]chakra-project[dot]org>
|
|
|
|
pkgname=qftp
|
|
pkgver=1.5.3
|
|
pkgrel=1
|
|
pkgdesc="A Qt client for FTP file transfers."
|
|
arch=('x86_64')
|
|
url="http://hugo.pereira.free.fr/software/index.php?page=package&package_list=software_list_qt4&package=qftp&full=0"
|
|
license=('GPLv2')
|
|
depends=('qt')
|
|
categories=('network')
|
|
source=("http://hugo.pereira.free.fr/software/tgz/${pkgname}-${pkgver}.tar.gz"
|
|
"qftp.desktop")
|
|
sha256sums=('7a5a09e1710952935757afacf5e54288c4a00a15c883ff4d493fd179e3c235f9'
|
|
'f47e84a94e6be6361b56e581110e549cc7533ccca425f2a4ba98470dba43969b')
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
# The default LDFLAGS="-Wl,--hash-style=gnu -Wl,--as-needed" specified
|
|
# in /etc/makepkg.conf will break the linkage procedure.
|
|
export LDFLAGS="-lX11" # Fix linking error.
|
|
|
|
cmake ./ -DCMAKE_INSTALL_PREFIX=/usr
|
|
make
|
|
}
|
|
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
make install DESTDIR="${pkgdir}"
|
|
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
|
|
|
|
install -d "${pkgdir}"/usr/share/{pixmaps,applications}
|
|
install -m644 "${srcdir}"/qftp.desktop "${pkgdir}"/usr/share/applications
|
|
install -m644 "${srcdir}"/"${pkgname}-${pkgver}"/qftp.png "${pkgdir}"/usr/share/pixmaps/qftp.png
|
|
}
|