summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a0495c149c1608581f0f88d8cb015ac4c6a6d04f (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
# Maintainer: <ayedeil at posteo dot com>
pkgname=bricklink-studio
pkgver=2.24.2_4
pkgrel=1
pkgdesc="Lego cad software created by Bricklink"
arch=('x86_64')
url="https://www.bricklink.com/v3/studio/download.page"
license=('custom')
depends=('wine')
makedepends=('innoextract')
source=("$pkgname-$pkgver.exe::https://s3.amazonaws.com/blstudio/Studio2.0/Archive/$pkgver/Studio+2.0.exe"
        "$pkgname.sh"
        "$pkgname.desktop"
        "$pkgname.xml")
noextract=("$pkgname-$pkgver.exe")
sha256sums=('32145060ce44f69fc0970a7d4652343c2d944ee3402f783809e31d59be2cf3d7'
            'a6b6ec21561e2a9594d8ba9e7dc496b819060003eef52a98c474f256da626f24'
            '0751e793784b23635ac722df64954ad8dc2037e53fdffd79ad513ef0e79ab2de'
            '7d3e39b48657b25f93a4e680e4d1473dad004dca8338467028c9aa3dc498326a')
options=(!strip)

prepare() {
  innoextract -d "$srcdir" "$pkgname-$pkgver.exe"
}

package() {
  install -Dd "$pkgdir/usr/share/$pkgname"
  cp -r "$srcdir/app"/* "$pkgdir/usr/share/$pkgname"

  install -Dm755 "$srcdir/$pkgname.sh" "$pkgdir/usr/bin/$pkgname"
  install -Dm644 "$srcdir/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
  install -Dm644 "$srcdir/$pkgname.xml" "$pkgdir/usr/share/mime/packages/$pkgname.xml"
}