diff options
author | osch | 2021-01-30 11:25:26 +0100 |
---|---|---|
committer | osch | 2021-01-30 11:25:26 +0100 |
commit | 0f28e0708fa45908b2abda5c4cb2ece678e5792c (patch) | |
tree | 7c332df11106056f9811d8e62cd9f5789080bd0e | |
parent | fbdb536084319eb3f20ca50f5673fa870bbdc23e (diff) | |
download | aur-lrexrepl.tar.gz |
hardwire lua interpreter
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 9 |
2 files changed, 9 insertions, 2 deletions
@@ -1,7 +1,7 @@ pkgbase = lrexrepl pkgdesc = Commandline tool: Search and Replace in multiple files using Regular Expressions and Lua pkgver = 0.2.1 - pkgrel = 1 + pkgrel = 2 url = https://github.com/osch/lrexrepl/#lrexrepl arch = i686 arch = x86_64 @@ -1,7 +1,7 @@ # Maintainer: osch <oliver@luced.de> pkgname=lrexrepl pkgver=0.2.1 -pkgrel=1 +pkgrel=2 rockrel=1 pkgdesc="Commandline tool: Search and Replace in multiple files using Regular Expressions and Lua" arch=('i686' 'x86_64') @@ -11,6 +11,13 @@ depends=('lua' 'lrexlib-pcre' 'lua-filesystem') source=("https://github.com/osch/$pkgname/archive/v$pkgver.tar.gz") noextract=() +prepare() { + cd "$srcdir/$pkgname-$pkgver" + + sed -e "1c#!/usr/bin/lua5.4" -i lrexrepl +} + + package() { cd "$srcdir/$pkgname-$pkgver" install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" |