From 79a9985cf5b01e570fe0e2d457287c4cc7191c99 Mon Sep 17 00:00:00 2001 From: Brien Dieterle Date: Wed, 5 Dec 2018 23:28:09 -0800 Subject: [PATCH] Mypaint Brushes: add 2.0 and update 1.3 src repo to official (#4752) * Mypaint Brushes: add 2.0 and update 1.3 src repo to official * brushes don't require libmypaint --- mingw-w64-mypaint-brushes/PKGBUILD | 4 +-- mingw-w64-mypaint-brushes2/PKGBUILD | 44 +++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 2 deletions(-) create mode 100644 mingw-w64-mypaint-brushes2/PKGBUILD diff --git a/mingw-w64-mypaint-brushes/PKGBUILD b/mingw-w64-mypaint-brushes/PKGBUILD index ab5784668e..eed343b032 100644 --- a/mingw-w64-mypaint-brushes/PKGBUILD +++ b/mingw-w64-mypaint-brushes/PKGBUILD @@ -7,12 +7,12 @@ pkgver=1.3.0 pkgrel=2 pkgdesc="Brushes for MyPaint (mingw-w64)" arch=('any') -url="https://github.com/Jehan/mypaint-brushes" +url="https://github.com/mypaint/mypaint-brushes" license=("ISC") makedepends=("${MINGW_PACKAGE_PREFIX}-gcc") depends=("${MINGW_PACKAGE_PREFIX}-libmypaint") options=('strip' '!debug') -source=(${_realname}-${pkgver}.tar.gz::https://github.com/Jehan/mypaint-brushes/archive/v${pkgver}.tar.gz) +source=(${_realname}-${pkgver}.tar.gz::https://github.com/mypaint/mypaint-brushes/archive/v${pkgver}.tar.gz) sha256sums=('704bb6420e65085acfd7a61d6050e96b0395c5eab078433f11406c355f16b214') noextract=(${_realname}-${pkgver}.tar.gz) diff --git a/mingw-w64-mypaint-brushes2/PKGBUILD b/mingw-w64-mypaint-brushes2/PKGBUILD new file mode 100644 index 0000000000..0a8c9c199d --- /dev/null +++ b/mingw-w64-mypaint-brushes2/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: Alexey Pavlov + +_realname=mypaint-brushes +pkgbase=mingw-w64-${_realname}2 +pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}2" +pkgver=2.0.0 +pkgrel=1 +pkgdesc="Brushes for MyPaint 2.0 (mingw-w64)" +arch=('any') +url="https://github.com/mypaint/mypaint-brushes" +license=("ISC") +makedepends=("${MINGW_PACKAGE_PREFIX}-gcc") +options=('strip' '!debug') +source=(${_realname}-${pkgver}.tar.gz::https://github.com/mypaint/mypaint-brushes/archive/v${pkgver}.tar.gz) +sha256sums=('a3bc82204345d2b401571604b43aaa068073aa1e7ba0fe866ebc1774cead1bb5') +noextract=(${_realname}-${pkgver}.tar.gz) + +prepare() { + [[ -d ${srcdir}/${_realname}-${pkgver} ]] && rm -rf ${srcdir}/${_realname}-${pkgver} + + tar --exclude=README -xzf ${_realname}-${pkgver}.tar.gz + + cd ${_realname}-${pkgver} + ./autogen.sh +} + +build() { + [[ -d build-${MINGW_CHOST} ]] && rm -rf build-${MINGW_CHOST} + mkdir -p build-${MINGW_CHOST} && cd build-${MINGW_CHOST} + + "${srcdir}/${_realname}-${pkgver}"/configure \ + --build=${MINGW_CHOST} \ + --host=${MINGW_CHOST} \ + --target=${MINGW_CHOST} \ + --prefix=${MINGW_PREFIX} + + make +} + +package() { + cd "${srcdir}"/build-${MINGW_CHOST} + make -j1 DESTDIR="${pkgdir}" install + install -Dm644 ${srcdir}/${_realname}-${pkgver}/Licenses.md "${pkgdir}"${MINGW_PREFIX}/share/licenses/${_realname}2/Licenses.md +}