Date: Saturday, September 24, 2016 @ 12:13:40 Author: arojas Revision: 190242
archrelease: copy trunk to community-staging-i686, community-staging-x86_64 Added: libmatekbd/repos/community-staging-i686/ libmatekbd/repos/community-staging-i686/PKGBUILD (from rev 190241, libmatekbd/trunk/PKGBUILD) libmatekbd/repos/community-staging-x86_64/ libmatekbd/repos/community-staging-x86_64/PKGBUILD (from rev 190241, libmatekbd/trunk/PKGBUILD) -----------------------------------+ community-staging-i686/PKGBUILD | 61 ++++++++++++++++++++++++++++++++++++ community-staging-x86_64/PKGBUILD | 61 ++++++++++++++++++++++++++++++++++++ 2 files changed, 122 insertions(+) Copied: libmatekbd/repos/community-staging-i686/PKGBUILD (from rev 190241, libmatekbd/trunk/PKGBUILD) =================================================================== --- community-staging-i686/PKGBUILD (rev 0) +++ community-staging-i686/PKGBUILD 2016-09-24 12:13:40 UTC (rev 190242) @@ -0,0 +1,61 @@ +# Contributor: Martin Wimpress <c...@flexion.org> + +_ver=1.16 +pkgbase=libmatekbd +pkgname=(${pkgbase} ${pkgbase}-gtk3) +pkgver=${_ver}.0 +pkgrel=1 +pkgdesc="MATE keyboard library" +url="http://mate-desktop.org" +arch=('i686' 'x86_64') +license=('LGPL') +depends=('gtk2' 'gtk3' 'libxklavier') +makedepends=('intltool') +source=("http://pub.mate-desktop.org/releases/${_ver}/${pkgname}-${pkgver}.tar.xz") +sha1sums=('3d73769c887cf709b0615808679fdac02491cd0a') + +prepare() { + cd "${srcdir}" + mv "${pkgname}-${pkgver}" "${pkgbase}-gtk2" + cp -a "${pkgbase}-gtk2" "${pkgbase}-gtk3" +} + +build() { + cd "${srcdir}/${pkgbase}-gtk2" + ./configure \ + --prefix=/usr \ + --with-gtk=2.0 + + #https://bugzilla.gnome.org/show_bug.cgi?id=656231 + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool + + make + + cd "${srcdir}/${pkgbase}-gtk3" + ./configure \ + --prefix=/usr \ + --with-gtk=3.0 + + #https://bugzilla.gnome.org/show_bug.cgi?id=656231 + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool + + make +} + +package_libmatekbd() { + pkgdesc+=' (GTK2 version)' + conflicts=("${pkgbase}-gtk3") + depends=('dconf' 'gtk2' 'libxklavier') + + cd "${srcdir}/${pkgbase}-gtk2" + make DESTDIR="${pkgdir}" install +} + +package_libmatekbd-gtk3() { + pkgdesc+=' (GTK3 version)' + conflicts=("${pkgbase}") + depends=('gtk3' 'libxklavier') + + cd "${srcdir}/${pkgbase}-gtk3" + make DESTDIR="${pkgdir}" install +} Copied: libmatekbd/repos/community-staging-x86_64/PKGBUILD (from rev 190241, libmatekbd/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2016-09-24 12:13:40 UTC (rev 190242) @@ -0,0 +1,61 @@ +# Contributor: Martin Wimpress <c...@flexion.org> + +_ver=1.16 +pkgbase=libmatekbd +pkgname=(${pkgbase} ${pkgbase}-gtk3) +pkgver=${_ver}.0 +pkgrel=1 +pkgdesc="MATE keyboard library" +url="http://mate-desktop.org" +arch=('i686' 'x86_64') +license=('LGPL') +depends=('gtk2' 'gtk3' 'libxklavier') +makedepends=('intltool') +source=("http://pub.mate-desktop.org/releases/${_ver}/${pkgname}-${pkgver}.tar.xz") +sha1sums=('3d73769c887cf709b0615808679fdac02491cd0a') + +prepare() { + cd "${srcdir}" + mv "${pkgname}-${pkgver}" "${pkgbase}-gtk2" + cp -a "${pkgbase}-gtk2" "${pkgbase}-gtk3" +} + +build() { + cd "${srcdir}/${pkgbase}-gtk2" + ./configure \ + --prefix=/usr \ + --with-gtk=2.0 + + #https://bugzilla.gnome.org/show_bug.cgi?id=656231 + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool + + make + + cd "${srcdir}/${pkgbase}-gtk3" + ./configure \ + --prefix=/usr \ + --with-gtk=3.0 + + #https://bugzilla.gnome.org/show_bug.cgi?id=656231 + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool + + make +} + +package_libmatekbd() { + pkgdesc+=' (GTK2 version)' + conflicts=("${pkgbase}-gtk3") + depends=('dconf' 'gtk2' 'libxklavier') + + cd "${srcdir}/${pkgbase}-gtk2" + make DESTDIR="${pkgdir}" install +} + +package_libmatekbd-gtk3() { + pkgdesc+=' (GTK3 version)' + conflicts=("${pkgbase}") + depends=('gtk3' 'libxklavier') + + cd "${srcdir}/${pkgbase}-gtk3" + make DESTDIR="${pkgdir}" install +}