summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: daa8a3b5fa85be0dd94caa10dde081d556da7817 (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
# Maintainer: Torge Matthies <openglfreak@googlemail.com>

pkgname=winestreamproxy
pkgver=2.0.3
pkgrel=1
pkgdesc="Forwards data between a Wine named pipe and a Unix domain socket."
arch=('x86_64')
url="https://github.com/openglfreak/winestreamproxy"
license=('MPL2')
depends=('sh' 'wine')
makedepends=('mingw-w64-gcc')
backup=('etc/xdg/winestreamproxy/settings.conf')
source=("https://github.com/openglfreak/winestreamproxy/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('f53d1326dcacae7be1d3992d0c2da711a61fdca7cb6f99e9275fe24b6facc029')

build() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    make out/winestreamproxy_unixlib.dll.so out/winestreamproxy_unixlib.dll.dbg.o
    export CFLAGS="${CFLAGS/-fno-plt/}"
    export LDFLAGS="${LDFLAGS/,-z,relro/}"
    export LDFLAGS="${LDFLAGS/,-z,now/}"
    make release
}

package() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    make DESTDIR="${pkgdir}/usr" PREFIX='/usr' install
    install -dm755 "${pkgdir}/etc/xdg/winestreamproxy"
    mv "${pkgdir}/usr/lib/winestreamproxy/settings.conf" "${pkgdir}/etc/xdg/winestreamproxy/settings.conf"
}