mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-03 08:27:15 +08:00
added android-file-transfer
This commit is contained in:
parent
be1a5bcc08
commit
1d6bd6fb58
34
android-file-transfer-linux/PKGBUILD
Normal file
34
android-file-transfer-linux/PKGBUILD
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
pkgname=android-file-transfer-linux
|
||||||
|
pkgver=2.4
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="An interactive MTP client implemented in C++ using Qt toolkit"
|
||||||
|
arch=('x86_64')
|
||||||
|
url="https://github.com/whoozle/android-file-transfer-linux"
|
||||||
|
license=('GPL3')
|
||||||
|
depends=('qt5-base' 'fuse' 'hicolor-icon-theme' 'xdg-utils' 'libxkbcommon-x11' 'file')
|
||||||
|
makedepends=('cmake' 'ninja' 'mesa')
|
||||||
|
install=$pkgname.install
|
||||||
|
source=("https://github.com/whoozle/android-file-transfer-linux/archive/v$pkgver.tar.gz")
|
||||||
|
sha1sums=('e4ba37af13487b1a4841b70cc5a6b01190b26a7c')
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
cd "$pkgname-$pkgver"
|
||||||
|
mkdir -p build
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd "$pkgname-$pkgver/build"
|
||||||
|
|
||||||
|
cmake -G Ninja .. \
|
||||||
|
-DCMAKE_INSTALL_PREFIX=/usr
|
||||||
|
|
||||||
|
ninja
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd "$pkgname-$pkgver"/build
|
||||||
|
|
||||||
|
DESTDIR="$pkgdir" ninja install
|
||||||
|
|
||||||
|
install -Dm644 ../LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
|
||||||
|
}
|
@ -0,0 +1,13 @@
|
|||||||
|
post_install() {
|
||||||
|
update-desktop-database -q
|
||||||
|
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
|
||||||
|
}
|
||||||
|
|
||||||
|
post_upgrade() {
|
||||||
|
post_install
|
||||||
|
}
|
||||||
|
|
||||||
|
post_remove() {
|
||||||
|
post_install
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user