archrelease: copy trunk to extra-x86_64
[arch-packages.git] / libappimage / trunk / PKGBUILD
blobffb3ec5a621480bf630f19e39696857cb0aad6c1
1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
3 pkgname=libappimage
4 pkgver=1.0.4.5
5 _pkgver=1.0.4-5
6 pkgrel=3
7 pkgdesc='Reference implementation of the AppImage specification'
8 arch=(x86_64)
9 url='https://appimage.org/'
10 license=(GPL)
11 depends=(libarchive squashfuse boost-libs librsvg)
12 makedepends=(cmake wget vim desktop-file-utils boost xdg-utils-cxx)
13 source=(https://github.com/AppImage/libappimage/archive/v$_pkgver/$pkgname-$_pkgver.tar.gz)
14 sha256sums=('2c4e18860a790c5959da6eb064cbd07f165fe6a9b15989491a3a3f176d06af31')
16 build() {
17   cmake -B build -S $pkgname-$_pkgver \
18     -DCMAKE_INSTALL_PREFIX=/usr \
19     -DCMAKE_C_FLAGS="$CFLAGS -ffat-lto-objects" \
20     -DUSE_SYSTEM_XZ=ON \
21     -DUSE_SYSTEM_SQUASHFUSE=ON \
22     -DUSE_SYSTEM_LIBARCHIVE=ON \
23     -DUSE_SYSTEM_BOOST=ON \
24     -DUSE_SYSTEM_XDGUTILS=ON \
25     -DBUILD_TESTING=OFF
26   cmake --build build
29 package() {
30   DESTDIR="$pkgdir" cmake --install build