summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: afb8b34c434ab0d5853890102ed59b975f438d9d (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: Kyle Laker <kyle@laker.email>
# Contributor: Mark Wagie <mark dot wagie at tutanota dot com>

pkgname=warpinator
pkgver=r39.53989e7
pkgrel=1
pkgdesc="Share files across the LAN by Linux Mint"
arch=("x86_64")
url="https://github.com/linuxmint/warp"
# License file is missing from the root of the repository; however, GPL-2+ is given in the
# debian/control file: https://github.com/linuxmint/warp/blob/master/debian/copyright
license=("GPL")
depends=("pygobject-devel" "python-setproctitle" "python-zeroconf" "python-xapp" "xapps")
makedepends=("git" "meson")
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}" "haskell-wai-app-static" "lm-warp-git" "warp-git")
source=("git+${url}.git")
sha512sums=('SKIP')

pkgver() {
    cd "$srcdir/warp"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
    cd "$srcdir/warp"

    # Fix hard-coded libexec dir in main warp script
    sed -i 's/libexec/lib/g' bin/warp
}

build() {
    arch-meson warp build
    ninja -C build
}

package() {
    DESTDIR="$pkgdir" ninja -C build install
}