summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8e882b8f9cfc55162be7246d401db61045626a54 (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
38
39
# Maintainer: Rafael Dominiquini <rafaeldominiquini at gmail dor com>
# Maintainer: Matthew Blankenbehler <spectrino3d@gmail.com>
# Contributor: Julius de Jeu <julius@voidcorp.nl>

pkgname=powdertoy-jacobsmod-bin
pkgver=57.1
pkgrel=1
pkgdesc="Desktop version of the classic falling sand physics sandbox, simulates air pressure, velocity & heat! Modded version by Jacob1"
arch=('x86_64')
url='https://powdertoy.co.uk/Discussions/Thread/View.html?Thread=11117'
license=('GPL3')
depends=('openssl' 'hicolor-icon-theme')
conflicts=("powder-toy-jacob")
provides=("powder-toy-jacob")
source=("${pkgname}-${pkgver}.tar.gz::https://starcatcher.us/TPT/mod/Older/Jacob1's%20Mod%20ver%20${pkgver}%20linux64.zip"
        "powder-jacobsmod.png::https://static.powdertoy.co.uk/avatars/jacob1.256.png"
        powdertoy-jacobsmod.desktop)
sha256sums=('64659ec606531d775c19e4a7e40d09e215577f9cbbf927004b5878b899928805'
            'SKIP'
            'SKIP')

prepare(){
  mv "${srcdir}/Jacob1's Mod" "${srcdir}/powder-jacobsmod"

  mv "${srcdir}/README" "${srcdir}/README.md"
  mv "${srcdir}/CHANGELOG" "${srcdir}/CHANGELOG.md"
}

package(){
  cd "${srcdir}"

  install -Dm 755 -t "${pkgdir}/usr/bin" powder-jacobsmod
  install -Dm 644 -t "${pkgdir}/usr/share/applications" powdertoy-jacobsmod.desktop
  install -Dm 644 -t "${pkgdir}/usr/share/doc/${pkgname}" README.md
  install -Dm 644 -t "${pkgdir}/usr/share/doc/${pkgname}" CHANGELOG.md
  install -Dm 644 -t "${pkgdir}/usr/share/licenses/${pkgname}" LICENSE

  install -Dm 644 "powder-jacobsmod.png" -t "${pkgdir}/usr/share/icons/"
}