Enforce clean unpack of the tarball even if makepkg is run without --cleanbuild

This commit is contained in:
Michael Hansen 2018-08-03 09:00:37 -07:00
parent 43b87e3938
commit 5abf16d0a7
2 changed files with 4 additions and 3 deletions

View file

@ -1,9 +1,9 @@
# Generated by mksrcinfo v8
# Mon Jul 30 15:39:41 UTC 2018
# Fri Aug 3 15:59:49 UTC 2018
pkgbase = clion-eap
pkgdesc = C/C++ IDE. 30-day evaluation.
pkgver = 182.3684.76
pkgrel = 2
pkgrel = 3
url = http://www.jetbrains.com/clion
arch = x86_64
license = custom

View file

@ -11,7 +11,7 @@ _pkgname=clion
_dlname=CLion
pkgver=182.3684.76
_dlver=2018.2
pkgrel=2
pkgrel=3
pkgdesc="C/C++ IDE. 30-day evaluation."
arch=('x86_64')
options=(!strip)
@ -26,6 +26,7 @@ noextract=("${_dlname}-${_dlver}.tar.gz")
backup=("opt/${pkgbase}/bin/clion64.vmoptions")
build() {
rm -rf "${srcdir}/opt"
mkdir -p "${srcdir}/opt/${pkgbase}"
bsdtar --strip-components 1 -xf "${_dlname}-${_dlver}.tar.gz" \
-C "${srcdir}/opt/${pkgbase}"