Skip to content

Commit 92e7f2b

Browse files
sindrenmholgerbrandl
authored andcommitted
Fix PKGBUIILD creation for AUR release (#249)
* Escape variables in PKGBUILD generation Make sure the variables in PKGBUILD are kept intact, instead of attempting to resolve them. * Align .SRCINFO properties * Match source file names
1 parent c5c18ff commit 92e7f2b

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

misc/kscript_release.sh

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -244,30 +244,30 @@ arch=('any')
244244
url='https://github.com/holgerbrandl/kscript'
245245
license=('MIT')
246246
depends=('kotlin')
247-
source=("${pkgname}-${pkgver}.bin.zip::https://github.com/holgerbrandl/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}-bin.zip")
247+
source=("\${pkgname}-\${pkgver}-bin.zip::https://github.com/holgerbrandl/\${pkgname}/releases/download/v\${pkgver}/\${pkgname}-\${pkgver}-bin.zip")
248248
sha256sums=('${archiveMd5}')
249249
250250
package() {
251-
cd "${srcdir}/${pkgname}-${pkgver}/bin"
251+
cd "\${srcdir}/\${pkgname}-\${pkgver}/bin"
252252
253-
install -Dm 755 kscript "${pkgdir}/usr/bin/kscript"
254-
install -Dm 644 kscript.jar "${pkgdir}/usr/bin/kscript.jar"
253+
install -Dm 755 kscript "\${pkgdir}/usr/bin/kscript"
254+
install -Dm 644 kscript.jar "\${pkgdir}/usr/bin/kscript.jar"
255255
}
256256
257257
EOF
258258

259259
#update the PKGBUILD file/pkgver variable
260260
cat - <<EOF > .SRCINFO
261261
pkgbase = kscript
262-
pkgdesc = Enhanced scripting support for Kotlin on *nix-based systems
263-
pkgver = ${kscript_version}
264-
pkgrel = 1
265-
url = https://github.com/holgerbrandl/kscript
266-
arch = any
267-
license = MIT
268-
depends = kotlin
269-
source = kscript-${kscript_version}.bin.zip::https://github.com/holgerbrandl/kscript/releases/download/v${kscript_version}/kscript-${kscript_version}-bin.zip
270-
sha256sums = ${archiveMd5}
262+
pkgdesc = Enhanced scripting support for Kotlin on *nix-based systems
263+
pkgver = ${kscript_version}
264+
pkgrel = 1
265+
url = https://github.com/holgerbrandl/kscript
266+
arch = any
267+
license = MIT
268+
depends = kotlin
269+
source = kscript-${kscript_version}.bin.zip::https://github.com/holgerbrandl/kscript/releases/download/v${kscript_version}/kscript-${kscript_version}-bin.zip
270+
sha256sums = ${archiveMd5}
271271
272272
pkgname = kscript
273273

0 commit comments

Comments
 (0)