mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-02-16 23:57:11 +00:00
community/marisa to 0.2.5-7
This commit is contained in:
parent
8d9b0c1853
commit
6e24b84ab8
1 changed files with 13 additions and 10 deletions
|
@ -5,14 +5,14 @@
|
||||||
# - remove --enable-sse2 from configure
|
# - remove --enable-sse2 from configure
|
||||||
|
|
||||||
pkgbase=marisa
|
pkgbase=marisa
|
||||||
pkgname=('marisa' 'perl-marisa' 'python2-marisa' 'ruby-marisa')
|
pkgname=('marisa' 'perl-marisa' 'python-marisa' 'ruby-marisa')
|
||||||
pkgver=0.2.5
|
pkgver=0.2.5
|
||||||
pkgrel=5
|
pkgrel=7
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
url="https://github.com/s-yata/marisa-trie"
|
url="https://github.com/s-yata/marisa-trie"
|
||||||
license=('BSD' 'LGPL')
|
license=('BSD' 'LGPL')
|
||||||
makedepends=('python2' 'ruby' 'perl')
|
makedepends=('python' 'ruby' 'perl' 'swig')
|
||||||
source=("marisa-trie::https://github.com/s-yata/marisa-trie/archive/v$pkgver.tar.gz")
|
source=("marisa-trie-$pkgver.tar.gz::https://github.com/s-yata/marisa-trie/archive/v$pkgver.tar.gz")
|
||||||
sha512sums=('62975a2dacd2a1072c990cd490f866cd5483c069c94a4706baf3ffc21ec43991583a8ef8721c3b841617b0654cbb894698c19759ff12b8887b6fd28939dfb547')
|
sha512sums=('62975a2dacd2a1072c990cd490f866cd5483c069c94a4706baf3ffc21ec43991583a8ef8721c3b841617b0654cbb894698c19759ff12b8887b6fd28939dfb547')
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
|
@ -34,6 +34,9 @@ build() {
|
||||||
|
|
||||||
make
|
make
|
||||||
|
|
||||||
|
# Regenerate swig bindings
|
||||||
|
make -C bindings -j1
|
||||||
|
|
||||||
# Perl bindings
|
# Perl bindings
|
||||||
cd "$srcdir"/marisa-trie-$pkgver/bindings/perl
|
cd "$srcdir"/marisa-trie-$pkgver/bindings/perl
|
||||||
perl Makefile.PL \
|
perl Makefile.PL \
|
||||||
|
@ -43,10 +46,10 @@ build() {
|
||||||
|
|
||||||
# Python bindings
|
# Python bindings
|
||||||
cd "$srcdir"/marisa-trie-$pkgver/bindings/python
|
cd "$srcdir"/marisa-trie-$pkgver/bindings/python
|
||||||
python2 setup.py build_ext \
|
python setup.py build_ext \
|
||||||
--include-dirs="$srcdir"/marisa-trie-$pkgver/include \
|
--include-dirs="$srcdir"/marisa-trie-$pkgver/include \
|
||||||
--library-dirs="$srcdir"/marisa-trie-$pkgver/lib/marisa/.libs
|
--library-dirs="$srcdir"/marisa-trie-$pkgver/lib/marisa/.libs
|
||||||
python2 setup.py build
|
python setup.py build
|
||||||
|
|
||||||
# Ruby bindings
|
# Ruby bindings
|
||||||
cd "$srcdir"/marisa-trie-$pkgver/bindings/ruby
|
cd "$srcdir"/marisa-trie-$pkgver/bindings/ruby
|
||||||
|
@ -83,12 +86,12 @@ package_perl-marisa() {
|
||||||
install -m 644 AUTHORS COPYING.md "$pkgdir"/usr/share/licenses/$pkgname/
|
install -m 644 AUTHORS COPYING.md "$pkgdir"/usr/share/licenses/$pkgname/
|
||||||
}
|
}
|
||||||
|
|
||||||
package_python2-marisa() {
|
package_python-marisa() {
|
||||||
pkgdesc="Python 2.x language binding for marisa"
|
pkgdesc="Python language binding for marisa"
|
||||||
depends=('python2' 'marisa')
|
depends=('python' 'marisa')
|
||||||
|
|
||||||
cd marisa-trie-$pkgver/bindings/python
|
cd marisa-trie-$pkgver/bindings/python
|
||||||
python2 setup.py install -O1 --root="$pkgdir"
|
python setup.py install -O1 --root="$pkgdir"
|
||||||
|
|
||||||
cd ../..
|
cd ../..
|
||||||
install -d "$pkgdir"/usr/share/licenses/$pkgname
|
install -d "$pkgdir"/usr/share/licenses/$pkgname
|
||||||
|
|
Loading…
Reference in a new issue