summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9ac3c14bed2c3e702b9e2a928c6be688ee96dd48 (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
pkgname=pipewire-module-xrdp-git
pkgver=r19.ge9c6c05
pkgrel=2
pkgdesc="xrdp pipewire module"
license=("MIT")
depends=("libpipewire>=0.3.58" "bash")
makedepends=("git")
conflicts=("pipewire-module-xrdp")
provides=("pipewire-module-xrdp")
arch=("x86_64")
url="https://github.com/neutrinolabs/pipewire-module-xrdp"
source=("git+$url.git")
sha256sums=('SKIP')

pkgver(){
    cd "$srcdir/pipewire-module-xrdp"
    echo "r$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)"
}
build(){
    cd "$srcdir/pipewire-module-xrdp"
    ./bootstrap
    ./configure --prefix=/usr \
        --sysconfdir=/etc \
        --libexecdir=/usr/lib \
        --localstatedir=/var
    make
}
package(){
    cd "$srcdir/pipewire-module-xrdp"
    DESTDIR="$pkgdir" make install
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/pipewire-module-xrdp-git/LICENSE"
}