blob: e50b96d95f86a2c8129dabd867dd1163cbfa1e80 (
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
|
# Maintainer: Fabio 'Lolix' Loli <fabio.loli@disroot.org> -> https://github.com/FabioLolix
# Contributor: James Kittsmiller (AJSlye) <james@nulogicsystems.com>
# Contributor: TheAssassin
pkgname=appimagelauncher-git
pkgver=r1258.cd87b73
pkgrel=2
pkgdesc="A Helper application for running and integrating AppImages."
arch=(x86_64)
url="https://github.com/TheAssassin/AppImageLauncher"
license=(MIT)
depends=(qt5-base qt5-declarative libappimage
# namcap implicit depends
glibc gcc-libs glib2 curl)
makedepends=(git cmake boost qt5-tools libxpm lib32-glibc lib32-gcc-libs tinyxxd patchelf
#appimageupdate-git
#fuse2
)
provides=(appimagelauncher)
conflicts=(appimagelauncher)
options=(debug !strip)
source=("git+https://github.com/TheAssassin/AppImageLauncher.git"
"appimagelauncher-fix#574.patch::https://github.com/TheAssassin/AppImageLauncher/pull/662/commits/9768162c5ba7c362d07748d8f0fcbb8b95a39cb9.patch"
"git+https://github.com/AppImageCommunity/AppImageUpdate.git"
#"git+https://github.com/AppImage/libappimage.git"
"git+https://github.com/AppImageCommunity/zsync2.git"
"git+https://github.com/AppImageCommunity/fltk-1.3.4.git"
"git+https://github.com/TheAssassin/libdesktopenvironments.git"
"git+https://github.com/arsenm/sanitizers-cmake.git"
"git+https://github.com/google/googletest.git"
"AppImage-cpr::git+https://github.com/AppImage/cpr.git"
"git+https://github.com/Taywee/args.git"
'appimage-binfmt-remove.hook')
sha256sums=('SKIP'
'508adf283f000f6e37c68adcf01555db2b459b8d39c825b3abbeaa678ebdbcd7'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'72a2630cf79b8f90bc21eae1d9f40c07fe77ce22df46c511b500f514455d7c81')
pkgver() {
cd AppImageLauncher
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
#git describe --long --tags --exclude continuous | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
CFLAGS="$CFLAGS -Wno-deprecated-declarations -Wno-implicit-function-declaration -Wno-incompatible-pointer-types"
prepare() {
cd AppImageLauncher
patch -Np1 -i ../appimagelauncher-fix#574.patch
git submodule init
git config submodule.lib/AppImageUpdate.url "${srcdir}/AppImageUpdate"
git -c protocol.file.allow=always submodule update
cd "${srcdir}/AppImageLauncher/lib/AppImageUpdate"
git submodule init
git config submodule.lib/zsync2.url "${srcdir}/zsync2"
git config submodule.lib/fltk.url "${srcdir}/fltk-1.3.4"
git config submodule.lib/libdesktopenvironments.url "${srcdir}/libdesktopenvironments"
git config submodule.lib/sanitizers-cmake.url "${srcdir}/sanitizers-cmake"
#git config submodule.lib/libappimage.url "${srcdir}/libappimage"
git config submodule.lib/libappimage.update none
git -c protocol.file.allow=always submodule update
#cd "${srcdir}/AppImageLauncher/lib/AppImageUpdate/lib/libappimage"
#git submodule init
#git config submodule.lib/gtest.url "${srcdir}/googletest"
#git -c protocol.file.allow=always submodule update
cd "$srcdir/AppImageLauncher/lib/AppImageUpdate/lib/zsync2"
git submodule init
git config submodule.lib/cpr.url "${srcdir}/AppImage-cpr"
git config submodule.lib/args.url "${srcdir}/args"
git config submodule.lib/gtest.url "${srcdir}/googletest"
git -c protocol.file.allow=always submodule update
}
# not recognized system's libappimageupdate
build() {
cd AppImageLauncher
local _flags=(
-DUSE_SYSTEM_LIBAPPIMAGE=ON
-DBUILD_TESTING=OFF
)
cmake . \
-Wno-dev \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_INSTALL_PREFIX=/usr \
"${_flags[@]}"
make libappimageupdate libappimageupdate-qt
cmake .
make
}
package() {
cd AppImageLauncher
make DESTDIR="$pkgdir" install
install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 ../appimage-binfmt-remove.hook "$pkgdir"/usr/share/libalpm/hooks/appimage-binfmt-remove.hook
patchelf --shrink-rpath "${pkgdir}/usr/lib/appimagelauncher/libappimageupdate-qt.so"
patchelf --shrink-rpath "${pkgdir}/usr/lib/appimagelauncher/libappimageupdate.so"
#patchelf --shrink-rpath "${pkgdir}/usr/bin/AppImageLauncherSettings"
#patchelf --shrink-rpath "${pkgdir}/usr/bin/ail-cli"
#patchelf --shrink-rpath "${pkgdir}/usr/bin/appimagelauncherd"
}
|