blob: fa5ab004cb552b9c4a019103c0a8c72bd1db7e47 (
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
|
# Maintainer: taotieren <admin@taotieren.com>
pkgname=appimage-installer
pkgver=2.0beta2
pkgrel=3
pkgdesc="AppImage install tool."
arch=('x86_64')
url="https://gitee.com/deepin-opensource/appimage-installer"
license=('GPL-3.0-only')
provides=(${pkgname})
conflicts=(${pkgname})
#replaces=(${pkgname})
depends=(
dtkcore
dtkwidget
dtkgui
gcc-libs
glibc
hicolor-icon-theme
qt5-base
qt5-svg
python)
makedepends=(
git
qconf
qt5-tools)
backup=()
options=()
# install=${pkgname}.install
source=("${pkgname}::git+${url}.git#commit=259510fdeee02e97f71b51c51e9cacb8f1750171")
sha256sums=('SKIP')
build() {
cd "${srcdir}/${pkgname}"
qmake ./${pkgname}.pro -spec linux-g++ CONFIG+=qtquickcompiler
make
}
package() {
cd "${srcdir}/${pkgname}"
install -dm0755 "${pkgdir}/usr/bin" \
"${pkgdir}/usr/share/applications" \
"${pkgdir}/usr/share/icons/hicolor/scalable/apps" \
"${pkgdir}/opt/apps/com.appimage-installer/entries/icons/hicolor/scalable/apps/" \
"${pkgdir}/opt/apps/com.appimage-installer/files" \
"${pkgdir}/opt/apps/com.appimage-installer/files/translations"
cp -rv "image/logo/appimage-installer.svg" "${pkgdir}/opt/apps/com.appimage-installer/entries/icons/hicolor/scalable/apps/"
cp -rv appimage-installer runapp.py "${pkgdir}/opt/apps/com.appimage-installer/files"
cp -rv "debian/opt/apps/com.appimage-installer/entries" "${pkgdir}/opt/apps/com.appimage-installer"
cd translations
cp -rv `ls *.qm` "${pkgdir}/opt/apps/com.appimage-installer/files/translations"
ln -sf "/opt/apps/com.appimage-installer/files/appimage-installer" "${pkgdir}/usr/bin/appimage-installer"
ln -sf "/opt/apps/com.appimage-installer/entries/applications/com.appimage-installer.desktop" "${pkgdir}/usr/share/applications/com.appimage-installer.desktop"
ln -sf "/opt/apps/com.appimage-installer/entries/icons/hicolor/scalable/apps/appimage-installer.svg" "${pkgdir}/usr/share/icons/hicolor/scalable/apps/appimage-installer.svg"
}
|