mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 05:47:13 +02:00
community/libsass: improve abuild
This commit is contained in:
parent
202b2fa1c7
commit
8441638df3
@ -3,7 +3,7 @@
|
|||||||
pkgname=libsass
|
pkgname=libsass
|
||||||
pkgver=3.5.4
|
pkgver=3.5.4
|
||||||
pkgrel=0
|
pkgrel=0
|
||||||
pkgdesc="A C/C++ implementation of a Sass compiler"
|
pkgdesc="C/C++ implementation of a Sass compiler"
|
||||||
url="http://libsass.org"
|
url="http://libsass.org"
|
||||||
arch="all"
|
arch="all"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
@ -11,31 +11,26 @@ depends=""
|
|||||||
makedepends="autoconf automake libtool"
|
makedepends="autoconf automake libtool"
|
||||||
subpackages="$pkgname-dev"
|
subpackages="$pkgname-dev"
|
||||||
source="$pkgname-$pkgver.tar.gz::https://github.com/sass/$pkgname/archive/$pkgver.tar.gz"
|
source="$pkgname-$pkgver.tar.gz::https://github.com/sass/$pkgname/archive/$pkgver.tar.gz"
|
||||||
builddir="$srcdir/$pkgname-$pkgver"
|
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
default_prepare || return 1
|
default_prepare
|
||||||
|
|
||||||
cd "$builddir"
|
|
||||||
autoreconf -vif
|
autoreconf -vif
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$builddir"
|
cd "$builddir"
|
||||||
|
|
||||||
./configure \
|
./configure \
|
||||||
--build=$CBUILD \
|
--build=$CBUILD \
|
||||||
--host=$CHOST \
|
--host=$CHOST \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--disable-static \
|
--disable-static
|
||||||
|| return 1
|
make
|
||||||
make || return 1
|
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "$builddir"
|
cd "$builddir"
|
||||||
|
|
||||||
make install DESTDIR="$pkgdir" || return 1
|
make install DESTDIR="$pkgdir"
|
||||||
rm -f "$pkgdir"/usr/lib/*.la
|
rm -f "$pkgdir"/usr/lib/*.la
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user