diff options
author | Mark Wagie | 2022-05-29 10:06:47 -0600 |
---|---|---|
committer | Mark Wagie | 2022-05-29 10:06:47 -0600 |
commit | d20139253fa9bc3d27aa3acff3838f8280a6c74e (patch) | |
tree | 73d152a3fcaceb4355f6ab60ac853e9599edac60 | |
parent | 677b7ea203aea15c2de895c680206057346eb352 (diff) | |
download | aur-d20139253fa9bc3d27aa3acff3838f8280a6c74e.tar.gz |
build & PKGBUILD improvements
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 59 |
2 files changed, 42 insertions, 32 deletions
@@ -1,13 +1,14 @@ pkgbase = appimagelauncher pkgdesc = A Helper application for running and integrating AppImages. pkgver = 2.2.0 - pkgrel = 5 + pkgrel = 6 url = https://github.com/TheAssassin/AppImageLauncher arch = x86_64 + arch = aarch64 license = MIT - makedepends = git makedepends = boost makedepends = cmake + makedepends = git makedepends = gtest makedepends = python makedepends = qt5-tools @@ -19,14 +20,14 @@ pkgbase = appimagelauncher depends = libxpm depends = qt5-base depends = shared-mime-info - source = appimagelauncher::git+https://github.com/TheAssassin/AppImageLauncher.git#tag=v2.2.0 + source = git+https://github.com/TheAssassin/AppImageLauncher.git#commit=0f918015fa418affec32435d1c61c6ae473f2af5 source = git+https://github.com/AppImage/AppImageUpdate.git source = git+https://github.com/AppImage/libappimage.git - source = git+https://github.com/TheAssassin/zsync2 - source = git+https://github.com/arsenm/sanitizers-cmake + source = git+https://github.com/TheAssassin/zsync2.git + source = git+https://github.com/arsenm/sanitizers-cmake.git source = git+https://github.com/google/googletest.git - source = git+https://github.com/AppImage/cpr - source = git+https://github.com/Taywee/args + source = git+https://github.com/AppImage/cpr.git + source = git+https://github.com/Taywee/args.git source = appimage-binfmt-remove.hook sha256sums = SKIP sha256sums = SKIP @@ -4,23 +4,25 @@ pkgname=appimagelauncher pkgver=2.2.0 -pkgrel=5 +pkgrel=6 pkgdesc="A Helper application for running and integrating AppImages." -arch=('x86_64') +arch=('x86_64' 'aarch64') url="https://github.com/TheAssassin/AppImageLauncher" license=('MIT') depends=('cairo' 'desktop-file-utils' 'hicolor-icon-theme' 'libappimage' 'libbsd' 'libxpm' 'qt5-base' 'shared-mime-info') -makedepends=('git' 'boost' 'cmake' 'gtest' 'python' 'qt5-tools') -source=("$pkgname::git+$url.git#tag=v$pkgver" +makedepends=('boost' 'cmake' 'git' 'gtest' 'python' 'qt5-tools') +_commit=0f918015fa418affec32435d1c61c6ae473f2af5 +source=("git+https://github.com/TheAssassin/AppImageLauncher.git#commit=$_commit" 'git+https://github.com/AppImage/AppImageUpdate.git' 'git+https://github.com/AppImage/libappimage.git' - 'git+https://github.com/TheAssassin/zsync2' - 'git+https://github.com/arsenm/sanitizers-cmake' + 'git+https://github.com/TheAssassin/zsync2.git' + 'git+https://github.com/arsenm/sanitizers-cmake.git' 'git+https://github.com/google/googletest.git' - 'git+https://github.com/AppImage/cpr' - 'git+https://github.com/Taywee/args' - 'appimage-binfmt-remove.hook') + 'git+https://github.com/AppImage/cpr.git' + 'git+https://github.com/Taywee/args.git' + 'appimage-binfmt-remove.hook' + ) sha256sums=('SKIP' 'SKIP' 'SKIP' @@ -31,48 +33,55 @@ sha256sums=('SKIP' 'SKIP' '72a2630cf79b8f90bc21eae1d9f40c07fe77ce22df46c511b500f514455d7c81') +pkgver() { + cd "$srcdir/AppImageLauncher" + git describe --tags | sed 's/^v//;s/-/+/g' +} + prepare() { - cd "$srcdir/$pkgname" + cd "$srcdir/AppImageLauncher" git submodule init git config submodule.lib/AppImageUpdate.url "$srcdir/AppImageUpdate" git config submodule.lib/libappimage.url "$srcdir/libappimage" git submodule update - cd "$srcdir/$pkgname/lib/AppImageUpdate" + pushd lib/AppImageUpdate git submodule init git config submodule.lib/zsync2.url "$srcdir/zsync2" git config submodule.lib/sanitizers-cmake.url "$srcdir/sanitizers-cmake" git config submodule.lib/libappimage.url "$srcdir/libappimage" git submodule update + popd - cd "$srcdir/$pkgname/lib/AppImageUpdate/lib/libappimage" + pushd lib/AppImageUpdate/lib/libappimage git submodule init git config submodule.lib/gtest.url "$srcdir/googletest" git submodule update + popd - cd "$srcdir/$pkgname/lib/AppImageUpdate/lib/zsync2" + pushd lib/AppImageUpdate/lib/zsync2 git submodule init git config submodule.lib/cpr.url "$srcdir/cpr" git config submodule.lib/args.url "$srcdir/args" git config submodule.lib/gtest.url "$srcdir/googletest" git submodule update + popd - cd "$srcdir/$pkgname/lib/libappimage" + pushd lib/libappimage git submodule init git config submodule.lib/gtest.url "$srcdir/googletest" git submodule update + popd } build() { - cd "$srcdir/$pkgname" + cd "$srcdir/AppImageLauncher" cmake . \ - -DCMAKE_BUILD_TYPE=None \ - -DCMAKE_INSTALL_PREFIX:PATH=/usr/ \ - -DUSE_SYSTEM_GTEST=ON \ - -DUSE_SYSTEM_XZ=ON \ - -DUSE_SYSTEM_LIBARCHIVE=ON \ - -DUSE_SYSTEM_LIBAPPIMAGE=ON \ - -DBUILD_TESTING=OFF \ + -DCMAKE_BUILD_TYPE='None' \ + -DCMAKE_INSTALL_PREFIX='/usr' \ + -DUSE_SYSTEM_LIBAPPIMAGE='ON' \ + -DUSE_SYSTEM_GTEST='ON' \ + -DBUILD_TESTING='OFF' \ -Wno-dev # See https://github.com/TheAssassin/AppImageLauncher/issues/251 @@ -82,9 +91,9 @@ build() { } package() { - cd "$srcdir/$pkgname" + cd "$srcdir/AppImageLauncher" make DESTDIR="$pkgdir" install - install -Dm644 LICENSE.txt -t "$pkgdir/usr/share/licenses/$pkgname" - install -Dm644 "$srcdir"/*.hook -t "$pkgdir"/usr/share/libalpm/hooks + install -Dm644 LICENSE.txt -t "$pkgdir/usr/share/licenses/$pkgname/" + install -Dm644 "$srcdir"/*.hook -t "$pkgdir"/usr/share/libalpm/hooks/ } |