# Maintainer: Driftwood Contributors

pkgname=driftwood
pkgver=0.1.0
pkgrel=1
pkgdesc='Modern AppImage manager for GNOME desktops'
arch=('x86_64')
url='https://git.lashman.live/lashman/driftwood'
license=('CC0-1.0')
depends=(
    'gtk4'
    'libadwaita'
    'sqlite'
    'gettext'
)
makedepends=(
    'rust'
    'cargo'
    'meson'
    'ninja'
    'glib2'
)
optdepends=(
    'firejail: sandboxed AppImage launching'
    'fuse2: FUSE mount support for Type 1 AppImages'
    'fuse3: FUSE mount support for Type 2 AppImages'
    'appimageupdate: delta updates for AppImages'
)
source=("$pkgname-$pkgver.tar.gz")
sha256sums=('SKIP')

build() {
    cd "$pkgname-$pkgver"
    arch-meson build
    meson compile -C build
}

package() {
    cd "$pkgname-$pkgver"
    meson install -C build --destdir "$pkgdir"
}
