summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 64f91427eab92908b766161af989f18ef05d8b91 (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
# Maintainer: valoq <valoq@mailbox.org>

pkgname=zypak
pkgver=v2024.01.17
pkgrel=1
_commit='ded79a2f8a509adc21834b95a9892073d4a91fdc'
pkgdesc="Redirect natively sandboxed applications to use a custom sandbox environment"
arch=('x86_64')
url="https://github.com/refi64/zypak"
license=('BSD')
depends=('systemd' 'dbus')
makedepends=()
provides=('zypak')
source=("$pkgname-$pkgver::git+https://github.com/refi64/zypak")

## using git commit hash
sha256sums=('SKIP')

prepare() {
    cd "$pkgname-$pkgver"
    git checkout ${_commit}
    git submodule init 
    git submodule update --init --recursive

}

build() {
    cd "$pkgname-$pkgver"
    ## upstreams configure does not do anything yet
    ./configure --prefix=/usr
    make
}

package() {
    cd "$pkgname-$pkgver"
    make DESTDIR="$pkgdir/usr/" FLATPAK_DEST="$pkgdir/usr/" install
    cd $pkgdir/usr/bin/
    ln -sf zypak-wrapper.sh zypak-wrapper
}