Date: Thursday, January 2, 2020 @ 15:02:49 Author: felixonmars Revision: 546183
archrelease: copy trunk to community-staging-x86_64 Added: marisa/repos/community-staging-x86_64/PKGBUILD (from rev 546182, marisa/trunk/PKGBUILD) Deleted: marisa/repos/community-staging-x86_64/PKGBUILD ----------+ PKGBUILD | 230 +++++++++++++++++++++++++++++++------------------------------ 1 file changed, 117 insertions(+), 113 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2020-01-02 15:02:39 UTC (rev 546182) +++ PKGBUILD 2020-01-02 15:02:49 UTC (rev 546183) @@ -1,113 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> -# Contributor: ponsfoot <cabezon dot hashimoto at gmail dot com> - -pkgbase=marisa -pkgname=('marisa' 'perl-marisa' 'python2-marisa' 'ruby-marisa') -pkgver=0.2.5 -pkgrel=6 -arch=('x86_64') -url="https://github.com/s-yata/marisa-trie" -license=('BSD' 'LGPL') -makedepends=('python2' 'ruby' 'perl') -source=("marisa-trie::https://github.com/s-yata/marisa-trie/archive/v$pkgver.tar.gz") -sha512sums=('62975a2dacd2a1072c990cd490f866cd5483c069c94a4706baf3ffc21ec43991583a8ef8721c3b841617b0654cbb894698c19759ff12b8887b6fd28939dfb547') - -prepare() { - cd marisa-trie-$pkgver - autoreconf -i -} - -build() { - cd marisa-trie-$pkgver - # sse2 is part of amd64 - ./configure --prefix=/usr --disable-static --enable-sse2 - # --enable-popcnt - # --enable-sse3 - # --enable-ssse3 - # --enable-sse4.1 - # --enable-sse4.2 - # --enable-sse4 - # --enable-sse4a - - make - - # Perl bindings - cd "$srcdir"/marisa-trie-$pkgver/bindings/perl - perl Makefile.PL \ - INC=-I"$srcdir"/marisa-trie-$pkgver/include \ - LIBS=-L"$srcdir"/marisa-trie-$pkgver/lib/marisa/.libs - make - - # Python bindings - cd "$srcdir"/marisa-trie-$pkgver/bindings/python - python2 setup.py build_ext \ - --include-dirs="$srcdir"/marisa-trie-$pkgver/include \ - --library-dirs="$srcdir"/marisa-trie-$pkgver/lib/marisa/.libs - python2 setup.py build - - # Ruby bindings - cd "$srcdir"/marisa-trie-$pkgver/bindings/ruby - ruby extconf.rb \ - --with-opt-include="$srcdir"/marisa-trie-$pkgver/include \ - --with-opt-lib="$srcdir"/marisa-trie-$pkgver/lib/marisa/.libs \ - --vendor - make -} - -package_marisa() { - pkgdesc="Static and space-efficient trie data structure library" - depends=('gcc-libs') - - cd marisa-trie-$pkgver - make DESTDIR="$pkgdir" install - - install -d "$pkgdir"/usr/share/doc/$pkgbase-$pkgver - install -m 644 docs/* "$pkgdir"/usr/share/doc/$pkgbase-$pkgver/ - - install -d "$pkgdir"/usr/share/licenses/$pkgname - install -m 644 AUTHORS COPYING.md "$pkgdir"/usr/share/licenses/$pkgname/ -} - -package_perl-marisa() { - pkgdesc="Perl language binding for marisa" - depends=('perl' 'marisa') - - cd marisa-trie-$pkgver/bindings/perl - make DESTDIR="$pkgdir" install - - cd ../.. - install -d "$pkgdir"/usr/share/licenses/$pkgname - install -m 644 AUTHORS COPYING.md "$pkgdir"/usr/share/licenses/$pkgname/ -} - -package_python2-marisa() { - pkgdesc="Python 2.x language binding for marisa" - depends=('python2' 'marisa') - - cd marisa-trie-$pkgver/bindings/python - python2 setup.py install -O1 --root="$pkgdir" - - cd ../.. - install -d "$pkgdir"/usr/share/licenses/$pkgname - install -m 644 AUTHORS COPYING.md "$pkgdir"/usr/share/licenses/$pkgname/ -} - -package_ruby-marisa() { - pkgdesc="Ruby language binding for marisa" - depends=('ruby' 'marisa') - - # ruby version without the patch number, e.g. 2.4 - local _rubyver=$(ruby -e"puts Gem.ruby_version.to_s.split('.')[0..1].join('.')") - - cd marisa-trie-$pkgver/bindings/ruby - _hdrdir=$(pkg-config --variable=rubyhdrdir ruby-$_rubyver) - _arch=$(pkg-config --variable=arch ruby-$_rubyver) - make DESTDIR="$pkgdir" install \ - hdrdir="$_hdrdir" \ - arch_hdrdir="${_hdrdir}/${_arch}" \ - rubyhdrdir="$_hdrdir" - - cd ../.. - install -d "$pkgdir"/usr/share/licenses/$pkgname - install -m 644 AUTHORS COPYING.md "$pkgdir"/usr/share/licenses/$pkgname/ -} Copied: marisa/repos/community-staging-x86_64/PKGBUILD (from rev 546182, marisa/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2020-01-02 15:02:49 UTC (rev 546183) @@ -0,0 +1,117 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: ponsfoot <cabezon dot hashimoto at gmail dot com> + +pkgbase=marisa +pkgname=('marisa' 'perl-marisa' 'python-marisa' 'ruby-marisa') +pkgver=0.2.5 +pkgrel=8 +arch=('x86_64') +url="https://github.com/s-yata/marisa-trie" +license=('BSD' 'LGPL') +makedepends=('python' 'ruby' 'perl' 'swig') +source=("marisa-trie-$pkgver.tar.gz::https://github.com/s-yata/marisa-trie/archive/v$pkgver.tar.gz") +sha512sums=('62975a2dacd2a1072c990cd490f866cd5483c069c94a4706baf3ffc21ec43991583a8ef8721c3b841617b0654cbb894698c19759ff12b8887b6fd28939dfb547') + +prepare() { + cd marisa-trie-$pkgver + autoreconf -i +} + +build() { + cd marisa-trie-$pkgver + # sse2 is part of amd64 + ./configure --prefix=/usr --disable-static --enable-sse2 + # --enable-popcnt + # --enable-sse3 + # --enable-ssse3 + # --enable-sse4.1 + # --enable-sse4.2 + # --enable-sse4 + # --enable-sse4a + + make + + # Regenerate swig bindings + # remove ruby because it's broken for now + make -C bindings -j1 swig-perl swig-python + + # Perl bindings + cd "$srcdir"/marisa-trie-$pkgver/bindings/perl + perl Makefile.PL \ + INC=-I"$srcdir"/marisa-trie-$pkgver/include \ + LIBS=-L"$srcdir"/marisa-trie-$pkgver/lib/marisa/.libs + make + + # Python bindings + cd "$srcdir"/marisa-trie-$pkgver/bindings/python + python setup.py build_ext \ + --include-dirs="$srcdir"/marisa-trie-$pkgver/include \ + --library-dirs="$srcdir"/marisa-trie-$pkgver/lib/marisa/.libs + python setup.py build + + # Ruby bindings + cd "$srcdir"/marisa-trie-$pkgver/bindings/ruby + ruby extconf.rb \ + --with-opt-include="$srcdir"/marisa-trie-$pkgver/include \ + --with-opt-lib="$srcdir"/marisa-trie-$pkgver/lib/marisa/.libs \ + --vendor + make +} + +package_marisa() { + pkgdesc="Static and space-efficient trie data structure library" + depends=('gcc-libs') + + cd marisa-trie-$pkgver + make DESTDIR="$pkgdir" install + + install -d "$pkgdir"/usr/share/doc/$pkgbase-$pkgver + install -m 644 docs/* "$pkgdir"/usr/share/doc/$pkgbase-$pkgver/ + + install -d "$pkgdir"/usr/share/licenses/$pkgname + install -m 644 AUTHORS COPYING.md "$pkgdir"/usr/share/licenses/$pkgname/ +} + +package_perl-marisa() { + pkgdesc="Perl language binding for marisa" + depends=('perl' 'marisa') + + cd marisa-trie-$pkgver/bindings/perl + make DESTDIR="$pkgdir" install + + cd ../.. + install -d "$pkgdir"/usr/share/licenses/$pkgname + install -m 644 AUTHORS COPYING.md "$pkgdir"/usr/share/licenses/$pkgname/ +} + +package_python-marisa() { + pkgdesc="Python language binding for marisa" + depends=('python' 'marisa') + + cd marisa-trie-$pkgver/bindings/python + python setup.py install -O1 --root="$pkgdir" + + cd ../.. + install -d "$pkgdir"/usr/share/licenses/$pkgname + install -m 644 AUTHORS COPYING.md "$pkgdir"/usr/share/licenses/$pkgname/ +} + +package_ruby-marisa() { + pkgdesc="Ruby language binding for marisa" + depends=('ruby' 'marisa') + + # ruby version without the patch number, e.g. 2.4 + local _rubyver=$(ruby -e"puts Gem.ruby_version.to_s.split('.')[0..1].join('.')") + + cd marisa-trie-$pkgver/bindings/ruby + _hdrdir=$(pkg-config --variable=rubyhdrdir ruby-$_rubyver) + _arch=$(pkg-config --variable=arch ruby-$_rubyver) + make DESTDIR="$pkgdir" install \ + hdrdir="$_hdrdir" \ + arch_hdrdir="${_hdrdir}/${_arch}" \ + rubyhdrdir="$_hdrdir" + + cd ../.. + install -d "$pkgdir"/usr/share/licenses/$pkgname + install -m 644 AUTHORS COPYING.md "$pkgdir"/usr/share/licenses/$pkgname/ +}