summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 72fa6628d1854e4e156e3da9707fc7a8cbb65653 (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
# Maintainer: Cory Sanin <corysanin@outlook.com>

_pkgname=boiler-writter
pkgname=${_pkgname}-bin
pkgver=1.4.0
pkgrel=1
pkgdesc='Console application to pull recent CS:GO matches'
arch=('x86_64')
url='https://github.com/akiver/boiler-writter'
license=('GPL3')
conflicts=('boiler-writter')
provides=('boiler-writter')
source=(
    "${_pkgname}_${pkgver}.zip"::"https://github.com/akiver/$_pkgname/releases/download/v$pkgver/boiler-writter-linux-$pkgver.zip"
)
sha1sums=(
    '75925d221675c2a47927a6e9d25a420fb53e7d7b'
)
sha256sums=(
    '578dccb831f9acce76d2024cd7a06ff9022234ff97b61985d08cd694342ab4c5'
)

package() {
	install -d "$pkgdir/opt/"
    cp -r "$srcdir/bin" "$pkgdir/opt/$_pkgname"
    printf "#\041/bin/sh\nexec \"/opt/$_pkgname/$_pkgname\" \"\$@\"" > "$pkgdir/opt/$_pkgname/$_pkgname.sh"
    chmod 755 "$pkgdir/opt/$_pkgname/"{"$_pkgname.sh","$_pkgname","libsteam_api.so"}

    install -d "$pkgdir/usr/bin"
    ln -s "/opt/$_pkgname/$_pkgname.sh" "$pkgdir/usr/bin/$_pkgname"
}