blob: b4ebd2b7c7acb86457284d633835c78583690523 (
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
|
# Maintainer: JP Cimalando <jp-dev@inbox.ru>
# Maintainer: Jefferson Gonzalez <jgmdev@gmail.com>
pkgname=appimage-git
_gitname=AppImageKit
pkgdesc="Package desktop applications as AppImages that run on common Linux-based operating systems, such as RHEL, CentOS, Ubuntu, Fedora, debian and derivatives."
pkgver=r1724.701b711
pkgrel=1
arch=('i686' 'x86_64')
url="http://appimage.org"
license=('MIT')
depends=('fuse' 'glib2' 'glibc' 'binutils' 'coreutils' 'zlib' 'lz4' 'zsync' 'inotify-tools' 'openssl' 'libarchive' 'xz' 'cairo')
makedepends=('git' 'cmake' 'wget' 'vim' 'desktop-file-utils' 'squashfuse')
provides=('appimage')
conflicts=('appimage')
options=('!strip')
install=
source=("git+https://github.com/AppImage/AppImageKit"
"git+https://github.com/AppImageCommunity/libappimage")
md5sums=('SKIP'
'SKIP')
pkgver() {
cd "${srcdir}/${_gitname}"
( set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" \
"$(git rev-list --count HEAD)" \
"$(git log | head -n 1 | cut -d" " -f2 | awk '{print substr($0,0,7)}')"
)
}
prepare() {
cd "${srcdir}/${_gitname}"
git submodule init
git config submodule.lib/libappimage.url "${srcdir}/libappimage"
git -c protocol.file.allow=always submodule update
cd "${srcdir}/${_gitname}/lib/libappimage/lib"
git submodule init
git -c protocol.file.allow=always submodule update
}
build() {
cd "${srcdir}/${_gitname}"
[[ -d build ]] && rm -rf build
mkdir build && cd build
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DUSE_SYSTEM_XZ=ON \
-DUSE_SYSTEM_SQUASHFUSE=ON \
-DUSE_SYSTEM_LIBARCHIVE=ON \
-DBUILD_TESTING=OFF
make
}
package(){
cd "$srcdir/${_gitname}"
DESTDIR="$pkgdir" cmake -P cmake_install.cmake --install build
}
|