mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
36 lines
1.2 KiB
Bash
36 lines
1.2 KiB
Bash
pkgname=qftp
|
|
pkgver=1.5.10
|
|
pkgrel=1
|
|
pkgdesc="A Qt5 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=('qt5-base' 'xcb-util-keysyms' 'qt5-x11extras')
|
|
makedepends=('cmake')
|
|
categories=('network')
|
|
source=("http://hugo.pereira.free.fr/software/tgz/$pkgname-$pkgver.tar.gz"
|
|
"$pkgname.desktop")
|
|
sha256sums=('c7044291e14fee5e8dec34fbed3c4e41649111e31517a208c02758146e4c300b'
|
|
'f47e84a94e6be6361b56e581110e549cc7533ccca425f2a4ba98470dba43969b')
|
|
|
|
build() {
|
|
cd $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 -DUSE_QT5=1
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd $pkgname-$pkgver
|
|
make install DESTDIR=$pkgdir
|
|
install -Dm644 COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING
|
|
|
|
install -d $pkgdir/usr/share/{pixmaps,applications}
|
|
install -m644 ../$pkgname.desktop $pkgdir/usr/share/applications
|
|
install -m644 $pkgname.png $pkgdir/usr/share/pixmaps/$pkgname.png
|
|
}
|