Zrythm installer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

55 lines
1.6 KiB

# Contributor: Alexandros Theodotou <alex at zrythm dot org>
_realname=libadwaita
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
_commit='main'
pkgver=0.1
pkgrel=1
pkgdesc="Cairo vector graphics library (mingw-w64)"
arch=('any')
url="https://cairographics.org/"
license=(LGPL2.1 MPL1.1)
makedepends=("${MINGW_PACKAGE_PREFIX}-gcc"
"${MINGW_PACKAGE_PREFIX}-pkg-config"
"${MINGW_PACKAGE_PREFIX}-gobject-introspection"
"${MINGW_PACKAGE_PREFIX}-sassc"
"${MINGW_PACKAGE_PREFIX}-meson"
"${MINGW_PACKAGE_PREFIX}-gtk-doc")
depends=("${MINGW_PACKAGE_PREFIX}-gtk4")
source=("https://gitlab.gnome.org/GNOME/libadwaita/-/archive/${_commit}/libadwaita-${_commit}.tar.gz")
sha256sums=('SKIP')
prepare() {
rm -rf /tmp/libadwaita-${pkgver}
mv "${srcdir}/libadwaita-${_commit}" /tmp/libadwaita-$pkgver
}
build() {
rm -rf /tmp/libadwaita-build-${MINGW_CHOST}
mkdir -p /tmp/libadwaita-build-${MINGW_CHOST}
cd /tmp/libadwaita-build-${MINGW_CHOST}
MSYS2_ARG_CONV_EXCL="--prefix=" \
${MINGW_PREFIX}/bin/meson \
--prefix=${MINGW_PREFIX} \
--buildtype=debug \
-Dvapi=false \
-Dtests=false \
-Dexamples=false \
-Dintrospection=disabled \
-Ddefault_library=shared \
/tmp/libadwaita-${pkgver}
meson compile
}
package() {
cd /tmp/libadwaita-build-${MINGW_CHOST}
DESTDIR="${pkgdir}" meson install
install -Dm644 "/tmp/libadwaita-${pkgver}/COPYING" "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/COPYING"
# reclaim space
rm -rf /tmp/libadwaita-build-${MINGW_CHOST}
}