blob: 384aa2b1a5f024481959f9655a2be821eb7abb49 [file] [log] [blame] [edit]
# Maintainer: Alberto Fanjul Alonso <albfan@gnome.org>
_realname=gtk-elementary-theme
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=5.4.2
pkgrel=1
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64')
pkgdesc="The GTK Stylesheet for elementary OS"
depends=( "${MINGW_PACKAGE_PREFIX}-gtk3")
makedepends=("${MINGW_PACKAGE_PREFIX}-meson"
"${MINGW_PACKAGE_PREFIX}-ninja"
"${MINGW_PACKAGE_PREFIX}-gcc"
"${MINGW_PACKAGE_PREFIX}-pkg-config")
options=('strip')
license=("GPL3")
url="https://github.com/elementary/stylesheet"
source=(${_realname}-${pkgver}::git+https://github.com/elementary/stylesheet.git#tag=${pkgver})
sha256sums=('SKIP')
build() {
[[ -d build-${MINGW_CHOST} ]] && rm -rf build-${MINGW_CHOST}
mkdir -p build-${MINGW_CHOST}
cd build-${MINGW_CHOST}
MSYS2_ARG_CONV_EXCL="--prefix=" \
meson \
--prefix="${MINGW_PREFIX}" \
--buildtype plain \
-Dvolume_icons=false \
../${_realname}-${pkgver}
ninja
}
package() {
cd "$srcdir/build-${MINGW_CHOST}"
DESTDIR="${pkgdir}" ninja install
install -Dm644 "${srcdir}/${_realname}-${pkgver}/COPYING" "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/COPYING"
}