diff options
author | B. Watson <urchlay@slackware.uk> | 2024-11-18 23:19:48 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2024-11-23 10:50:34 +0700 |
commit | 3acb77c47af498600c098e83da6cb732283d636b (patch) | |
tree | 286e4bd4779fcef7b2c4212ffa539c0d493a5b39 /development/cgit/cgit.SlackBuild | |
parent | 64517c893be366e7ef39bf591a66708ad7395e55 (diff) |
development/cgit: Better lua support.
Signed-off-by: B. Watson <urchlay@slackware.uk>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/cgit/cgit.SlackBuild')
-rw-r--r-- | development/cgit/cgit.SlackBuild | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/development/cgit/cgit.SlackBuild b/development/cgit/cgit.SlackBuild index f717f77a3a..a5ecdc91c5 100644 --- a/development/cgit/cgit.SlackBuild +++ b/development/cgit/cgit.SlackBuild @@ -21,6 +21,14 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20241118 bkw: Modified by SlackBuilds.org, BUILD=3: +# - modify all the email-avatar lua scripts to use only lua-md5, instead +# of a mix of lua-md5, luaossl (which we don't even have), and luacrypto. +# basically, all 3 were being used *just* to calculate md5sums; now +# all the scripts will use lua-md5 to calculate them. allows us to +# remove luacrypto from README, too. +# - make slack-desc reflect which lua package (if any) we built with. + # 20241025 bkw: Modified by SlackBuilds.org, BUILD=2: # - bump BUILD to make people rebuild with the new lua. # - remove mention of lua52/lua53 from README. @@ -29,7 +37,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=cgit VERSION=${VERSION:-1.2.3} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -86,6 +94,9 @@ chown -R root:root . find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} + -o \ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} + +# 20241118 bkw: clean up the avatar scripts. +patch -p1 < $CWD/lua-md5-avatar.diff + # prepare sources sed -i Makefile \ -e "s|-g -Wall -Igit|-Wall ${SLKCFLAGS} -Igit|" \ @@ -122,8 +133,16 @@ mkdir -p $PKG/var/cache/cgit chown 80:80 $PKG/var/cache/cgit chmod 775 $PKG/var/cache/cgit +# 20241118 bkw: this will help the user out. +case "$( objdump -p cgit | grep 'NEEDED.*liblua' )" in + *liblua5.1.so) WITHLUA="with lua51" ;; + *liblua.so) WITHLUA="with lua" ;; + *libluajit*) WITHLUA="with luajit" ;; + *) WITHLUA="WITHOUT lua" ;; +esac + mkdir -p $PKG/install -cat $CWD/slack-desc > $PKG/install/slack-desc +sed "s,@WITHLUA@,$WITHLUA," < $CWD/slack-desc > $PKG/install/slack-desc cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |