From f29d569cd33a73da5ad675f43a34ad53c5cc9bc6 Mon Sep 17 00:00:00 2001 From: davidovski Date: Thu, 2 Feb 2023 14:10:02 +0000 Subject: Work --- repo/libsass/fix-pkgconfig-version.patch | 16 ++++++++++++++++ repo/libsass/libsass.xibuild | 31 +++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 repo/libsass/fix-pkgconfig-version.patch create mode 100644 repo/libsass/libsass.xibuild (limited to 'repo/libsass') diff --git a/repo/libsass/fix-pkgconfig-version.patch b/repo/libsass/fix-pkgconfig-version.patch new file mode 100644 index 0000000..f957de4 --- /dev/null +++ b/repo/libsass/fix-pkgconfig-version.patch @@ -0,0 +1,16 @@ +diff --git a/version.sh b/version.sh +index 281de74..22cd96d 100755 +--- a/version.sh ++++ b/version.sh +@@ -1,10 +1 @@ +-if test "x$LIBSASS_VERSION" = "x"; then +- LIBSASS_VERSION=`git describe --abbrev=4 --dirty --always --tags 2>/dev/null` +-fi +-if test "x$LIBSASS_VERSION" = "x"; then +- LIBSASS_VERSION=`cat VERSION 2>/dev/null` +-fi +-if test "x$LIBSASS_VERSION" = "x"; then +- LIBSASS_VERSION="[na]" +-fi +-echo $LIBSASS_VERSION ++echo 3.6.3 diff --git a/repo/libsass/libsass.xibuild b/repo/libsass/libsass.xibuild new file mode 100644 index 0000000..534219f --- /dev/null +++ b/repo/libsass/libsass.xibuild @@ -0,0 +1,31 @@ +#!/bin/sh + +NAME="libsass" +DESC="C/C++ implementation of a Sass compiler" + +MAKEDEPS="autoconf automake libtool" + +PKG_VER=3.6.5 +SOURCE="https://github.com/sass/libsass/archive/$PKG_VER.tar.gz" + +ADDITIONAL=" +fix-pkgconfig-version.patch +" + +prepare() { + apply_patches + autoreconf -vif +} + +build() { + ./configure \ + --prefix=/usr \ + --disable-static + make +} + +package() { + make install DESTDIR="$PKG_DEST" + rm -f "$PKG_DEST"/usr/lib/*.la +} + -- cgit v1.2.1