summaryrefslogtreecommitdiff
path: root/repo/libsass
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2023-02-02 14:10:02 +0000
committerdavidovski <david@davidovski.xyz>2023-02-02 14:10:02 +0000
commitf29d569cd33a73da5ad675f43a34ad53c5cc9bc6 (patch)
tree76fe6267f8307e7630fc6f53ff99a9767ad40de0 /repo/libsass
parent05d004dfe0c9a9d898fac8a4a0292ca2a74ca391 (diff)
Work
Diffstat (limited to 'repo/libsass')
-rw-r--r--repo/libsass/fix-pkgconfig-version.patch16
-rw-r--r--repo/libsass/libsass.xibuild31
2 files changed, 47 insertions, 0 deletions
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
+}
+