diff options
author | actionless | 2020-08-10 03:01:30 +0200 |
---|---|---|
committer | actionless | 2020-08-10 03:01:30 +0200 |
commit | 6940e2a657db6918e9913ebe6fcfa4d4163b2d97 (patch) | |
tree | f569e5aac9a064616a2b1d05b9b5cbb38e41ed22 | |
parent | c9d991b56ee2545c46304b134be1324364ce5e76 (diff) | |
download | aur-6940e2a657db6918e9913ebe6fcfa4d4163b2d97.tar.gz |
use variable for lua version for easier maintenance
-rw-r--r-- | PKGBUILD | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -19,6 +19,7 @@ conflicts=('lgi' 'lua53-lgi') provides=('lua53-lgi') source=('git+https://github.com/pavouk/lgi.git') md5sums=('SKIP') +_LUA_VER=5.3 pkgver() { cd $_pkgbase @@ -28,15 +29,15 @@ pkgver() { build() { cd $_pkgbase - make LUA_INCDIR=/usr/include/lua5.3/ \ - LUA_CFLAGS="$(pkg-config --cflags lua5.3) -O2" + make LUA_INCDIR=/usr/include/lua${_LUA_VER}/ \ + LUA_CFLAGS="$(pkg-config --cflags lua${_LUA_VER}) -O2" } package() { cd $_pkgbase make \ - LUA_LIBDIR=/usr/lib/lua/5.3 \ - LUA_SHAREDIR=/usr/share/lua/5.3 \ + LUA_LIBDIR=/usr/lib/lua/${_LUA_VER} \ + LUA_SHAREDIR=/usr/share/lua/${_LUA_VER} \ DESTDIR="$pkgdir/" install # dump typelib tool |