# Maintainer: i4 <[email protected]>
# Maintainer: taotieren <[email protected]>
# Contributor: Astro Benzene <universebenzene at sina dot com>
pkgname=i4tools-bin
pkgver=1.0.055
pkgrel=1
epoch=
pkgdesc="爱思助手是一款集“高效管理 iOS 设备数据”,“智能刷机”和“免费下载海量应用游戏、铃声壁纸”等为一体的 iOS 设备管理工具。"
arch=('any')
url="https://www.i4.cn/pro_pc.html"
license=('Custom')
groups=()
depends=('bash' 'ffmpeg' 'libwebp' 'sdl2' 'libcdio-paranoia' 'numactl' 'rtmpdump' 'twolame' 'mpg123' 'libldap24')
makedepends=('libarchive')
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=('!strip')
install=
changelog=
source=("https://d-updater.i4.cn/i4linux/deb/${pkgname%-bin}_v${pkgver}.deb")
noextract=()
sha256sums=('0f3b65cd3ae69bf98e8443d29f2f27497d81f8f6bacd25a8ca16e96846d75b26')
#validpgpkeys=()
package() {
bsdtar xf "${srcdir}/data.tar.xz" --no-same-owner -C "${pkgdir}"
chmod -R 0755 "${pkgdir}"
install -dm0755 "${pkgdir}/usr/bin"
ln -sf "/usr/share/i4tools/i4toolslinux.sh" "${pkgdir}/usr/bin/${pkgname%-bin}"
# 将 libwebp.so.7 软链接成 libwebp.so.6
# 建议如下处理: https://wiki.archlinux.org/title/Frequently_asked_questions#If_I_need_an_older_version_of_an_installed_library,_can_I_just_symlink_to_the_newer_version?
ln -sf "/usr/lib/libwebp.so" "${pkgdir}/usr/share/i4tools/lib/libwebp.so.6"
sed -i '/QT_IM/d' ${pkgdir}/usr/share/i4tools/i4toolslinux.sh
}