blob: 60e0f5a4db9a45662c1cf2176d05fde656b0a273 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
# Maintainer: Uncore <contactuncor3@gmail.com>
pkgname=idescriptor-git
_pkgname=iDescriptor
pkgver=r263.6d86243
pkgrel=4
pkgdesc="A free, open-source, and cross-platform iDevice management tool."
arch=('x86_64')
url="https://github.com/iDescriptor/iDescriptor"
license=('AGPL3-or-later')
provides=("$pkgname")
depends=(
'libimobiledevice>=1.4.0'
'libtatsu>=1.0.5'
'libimobiledevice-glue'
'libplist'
'usbmuxd'
'libusbmuxd'
'openssl'
'libssh'
'libusb'
'pugixml'
'qrencode'
'libheif'
'libzip'
'qt6-base'
'qt6-multimedia'
'qt6-declarative'
'qt6-serialport'
'qt6-positioning'
'qt6-location'
'qtermwidget'
'avahi'
'libsecret'
'gnome-keyring'
'ffmpeg'
'ifuse'
'gstreamer'
'gst-plugins-base-libs'
'gst-plugins-good'
'gst-plugins-bad'
'gst-plugins-ugly'
'gst-libav'
'sqlite'
)
makedepends=(
'git'
'cmake'
'go'
'cargo'
)
options=('!debug')
source=("git+https://github.com/iDescriptor/iDescriptor.git")
sha256sums=('SKIP')
pkgver() {
cd "$_pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$_pkgname"
git submodule update --init --recursive
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --manifest-path src/rust/Cargo.toml
}
build() {
cd "$_pkgname"
export CFLAGS+=" -ffat-lto-objects"
export CXXFLAGS+=" -ffat-lto-objects"
export LIBSQLITE3_SYS_USE_PKG_CONFIG=1
cmake -B build -S . \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DPACKAGE_MANAGER_MANAGED=ON \
-DPACKAGE_MANAGER_HINT=yay/paru
cmake --build build
}
package() {
cd "$_pkgname/build"
DESTDIR="$pkgdir" cmake --install .
}
|