summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1825e7c8b4f3f2183178ffab18c6528a44afb323 (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
# Maintainer: Javier Coindreau <javster101@outlook.com>

pkgname="brickbench"
pkgver=0.3.2
pkgrel=2
pkgdesc='Map editor for Lego Star Wars: The Complete Saga'
arch=('x86_64')
license=('custom')
url='https://brickbench.opengg.dev/'
md5sums=('d055cfc005524a42cac46a686940c9df'
         '75f83ac48b5d34728f0b7e5b74a2dc34')

depends=('giflib' 'alsa-lib' 'libjpeg-turbo' 'libxtst' 'lcms2' 'libxrender' 'libnet')

source=(
    "https://github.com/BrickBench/BrickBench/releases/download/v${pkgver}/brickbench-${pkgver}-linux_x86_64.tar.gz"
    "BrickBench.desktop"
)

provides=(
    'brickbench'
)

options=()

package() {
    mkdir -p "${pkgdir}/opt/brickbench"
    mkdir -p "${pkgdir}/usr/share/applications"
    mkdir -p "${pkgdir}/usr/bin"

    cp -R "${srcdir}/bin" "${pkgdir}/opt/brickbench"
    cp -R "${srcdir}/lib" "${pkgdir}/opt/brickbench"
    
    install -Dm0644 -t "${pkgdir}/usr/share/applications/" "BrickBench.desktop"

    ln -sf "/opt/brickbench/bin/brickbench" "${pkgdir}/usr/bin/brickbench"
}