PKGBUILD 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. # Maintainer: txtsd <aur.archlinux@ihavea.quest>
  2. # Maintainer: Atakku <atakkudev@gmail.com>
  3. pkgname=blockbench-bin
  4. _pkgname=blockbench
  5. provides=(blockbench)
  6. conflicts=(blockbench)
  7. pkgname_orig=Blockbench
  8. pkgver=4.6.5
  9. pkgrel=1
  10. pkgdesc="A low-poly 3D model editor"
  11. arch=('x86_64')
  12. url="https://blockbench.net/"
  13. license=('GPL3')
  14. depends=('gtk3' 'nss' 'giblib' 'at-spi2-core' 'alsa-lib')
  15. makedepends=('gzip')
  16. source=("https://github.com/JannisX11/blockbench/releases/download/v${pkgver}/Blockbench_${pkgver}.deb")
  17. sha512sums=('a0a829d13f518c4ac257ac10b2c70139164758eaf572e089bf54f6616b01f93b230fd32029dcbfc757952e7ea892bec13675c6e0b56cafeaf34a58fb7bcbeabe')
  18. package() {
  19. msg2 "Extracting the data.tar.xz..."
  20. bsdtar -xf data.tar.xz -C "${pkgdir}/"
  21. msg2 "Moving the files..."
  22. mv "${pkgdir}/opt/${pkgname_orig}" "${pkgdir}/opt/${_pkgname}"
  23. gzip -d "${pkgdir}/usr/share/doc/${_pkgname}/changelog.gz"
  24. sed -i "s:/opt/${pkgname_orig}:/opt/${_pkgname}:" "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
  25. mkdir -p "${pkgdir}/usr/bin"
  26. ln -s "/opt/${_pkgname}/${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
  27. }