diff options
author | Damien Flament | 2017-08-26 09:11:27 +0200 |
---|---|---|
committer | Damien Flament | 2017-08-26 10:22:29 +0200 |
commit | 77f6d27e6d33bb1f373774ee5c749f6412dced82 (patch) | |
tree | e69626df8d17b89b5bda8fa2738097f8317b4e84 /PKGBUILD | |
parent | 609047617a772ce6aeec8283a624498277c3d5de (diff) | |
download | aur-77f6d27e6d33bb1f373774ee5c749f6412dced82.tar.gz |
Moved script generation within the prepare() function
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 18 |
1 files changed, 11 insertions, 7 deletions
@@ -3,7 +3,7 @@ pkgname=voxelshop _pkgname_upper=VoxelShop pkgver=1.8.02 -pkgrel=2 +pkgrel=3 pkgdesc='An extremely intuitive and powerful cross-platform software to modify and create voxel objects which was designed from the ground up in close collaboration with artists.' url=http://blackflux.com/node/11 license=('Apache') @@ -21,20 +21,24 @@ changelog= source=('voxelshop' "https://github.com/simlu/voxelshop/releases/download/${pkgver}/VoxelShop-java-all-os-fast.zip") noextract=() -sha256sums=('0158a4e52afc88c9d9c6341f50c237383e1781c18a25060c93989877e2f71aa7' +sha256sums=('849a498d505f7e817c529d5b538f94c82aeaf45a8d75786dcf9651adf3d1d645' '86c1fd50ef32b17be92df37d6a5c2206e456d99bc7abe4da80a44f49d2a377d3') arch=('any') +prepare() { + # Generate the startup script + cd "${srcdir}" + sed -i "s/{{pkgname}}/${pkgname}/g" "${pkgname}" +} + package() { # Install the distributed files in /opt cd "${srcdir}/${_pkgname_upper}" - install -Dm755 -t "${pkgdir}/opt/${pkgname}" data/* - - # Generate the startup script + install -Dm755 -t "${pkgdir}/usr/share/${pkgname}" data/* + + # Install the custom startup script cd "${srcdir}" - sed -i "s/{{pkgname}}/${pkgname}/g" "${pkgname}" - install -D -t "${pkgdir}/usr/bin" "${pkgname}" # Add a symlink to the startup script using the camel-cased package name |