summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Sun2018-06-12 22:21:11 -0400
committerAndrew Sun2018-06-12 22:21:11 -0400
commitaa3a3cdb6df67b046b177c09befb072d527cf525 (patch)
treee8b170e28da67f4abb891b4c566f8e75981e3ab1
downloadaur-aa3a3cdb6df67b046b177c09befb072d527cf525.tar.gz
mingw-w64-libsass: version 3.5.4
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD40
2 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..24cea7732ec1
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = mingw-w64-libsass
+ pkgdesc = C implementation of Sass CSS preprocessor (library) (mingw-w64)
+ pkgver = 3.5.4
+ pkgrel = 1
+ url = http://libsass.org/
+ arch = any
+ license = MIT
+ makedepends = mingw-w64-configure
+ depends = mingw-w64-crt
+ options = !strip
+ options = !buildflags
+ options = staticlibs
+ source = libsass-3.5.4.tar.gz::https://github.com/sass/libsass/archive/3.5.4.tar.gz
+ md5sums = 4af3f4ffd3e8cac1cb1c90ebc2dd41b2
+
+pkgname = mingw-w64-libsass
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..a4ddd1e13883
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,40 @@
+# Maintainer: Andrew Sun <adsun701@gmail.com>
+
+pkgname=mingw-w64-libsass
+pkgver=3.5.4
+pkgrel=1
+pkgdesc="C implementation of Sass CSS preprocessor (library) (mingw-w64)"
+arch=('any')
+url="http://libsass.org/"
+license=('MIT')
+makedepends=('mingw-w64-configure')
+depends=('mingw-w64-crt')
+options=('!strip' '!buildflags' 'staticlibs')
+md5sums=('4af3f4ffd3e8cac1cb1c90ebc2dd41b2')
+source=("libsass-${pkgver}.tar.gz"::"https://github.com/sass/libsass/archive/${pkgver}.tar.gz")
+
+_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
+
+prepare() {
+ cd "${srcdir}/libsass-${pkgver}/"
+ autoreconf -fiv
+}
+
+build() {
+ cd "${srcdir}/libsass-${pkgver}/"
+ for _arch in ${_architectures}; do
+ mkdir -p build-${_arch} && pushd build-${_arch}
+ ${_arch}-configure ..
+ make
+ popd
+ done
+}
+
+package() {
+ for _arch in ${_architectures}; do
+ cd "${srcdir}/libsass-${pkgver}/build-${_arch}"
+ make DESTDIR="${pkgdir}" install
+ ${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll
+ ${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a
+ done
+}