diff options
author | Alexander Epaneshnikov | 2023-03-23 23:11:26 +0300 |
---|---|---|
committer | Alexander Epaneshnikov | 2023-03-23 23:11:26 +0300 |
commit | 097f1edd0aef03973d3cd1357d9607cc6f9009ca (patch) | |
tree | 3b515e0d26c168a3deb6d57ca6b50a7a4f5fccd8 | |
parent | bb03fb25970dac71a6bea1d3a928640354af6d8c (diff) | |
download | aur-espeak-ng-git.tar.gz |
upgpkg: espeak-ng-git 1.51.r708.gff46761d-1 build with cmake
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 30 |
2 files changed, 15 insertions, 19 deletions
@@ -1,6 +1,6 @@ pkgbase = espeak-ng-git pkgdesc = Multi-lingual software speech synthesizer (development version) - pkgver = 1.51.r260.g4acc2954 + pkgver = 1.51.r708.gff46761d pkgrel = 1 url = https://github.com/espeak-ng/espeak-ng arch = aarch64 @@ -10,6 +10,7 @@ pkgbase = espeak-ng-git arch = x86_64 license = GPL3 checkdepends = python + makedepends = cmake makedepends = git makedepends = ruby-ronn-ng depends = pcaudiolib @@ -22,7 +23,6 @@ pkgbase = espeak-ng-git conflicts = espeak replaces = espeak-ng-espeak-git replaces = espeak-ng-espeak - options = debug source = espeak-ng::git+https://github.com/espeak-ng/espeak-ng.git md5sums = SKIP @@ -2,19 +2,18 @@ # Maintainer: Alexander Epaneshnikov <alex19ep@archlinux.org> pkgname=('espeak-ng-git') -pkgver=1.51.r260.g4acc2954 +pkgver=1.51.r708.gff46761d pkgrel=1 pkgdesc="Multi-lingual software speech synthesizer (development version)" arch=('aarch64' 'armv6h' 'armv7h' 'i686' 'x86_64') url="https://github.com/espeak-ng/espeak-ng" license=('GPL3') depends=('pcaudiolib' 'libsonic') -makedepends=('git' 'ruby-ronn-ng') +makedepends=('cmake' 'git' 'ruby-ronn-ng') checkdepends=('python') replaces=('espeak-ng-espeak-git' 'espeak-ng-espeak') provides=('espeak-ng-espeak-git' 'espeak-ng-espeak' 'espeak-ng') conflicts=('espeak-ng-espeak' 'espeak-ng' 'espeak') -options=(debug) source=(${pkgname%-git}::'git+https://github.com/espeak-ng/espeak-ng.git') md5sums=('SKIP') @@ -23,25 +22,22 @@ pkgver() { git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } -prepare() { - cd ${pkgname%-git} - ./autogen.sh -} - build() { - cd ${pkgname%-git} - ./configure --prefix=/usr - make + cmake -B build -S "${pkgname%-git}" -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE='None' \ + -DFETCHCONTENT_FULLY_DISCONNECTED=ON \ + -DBUILD_SHARED_LIBS=ON \ + -DESPEAK_COMPAT=ON \ + -DESPEAK_BUILD_MANPAGES=ON \ + -Wno-dev + cmake --build build } check() { - cd ${pkgname%-git} - make -j1 check +ctest --test-dir build --output-on-failure } package() { - cd ${pkgname%-git} - make DESTDIR="$pkgdir" install - mv "$pkgdir"/usr/share/vim/{addons,vimfiles} - rm -r "$pkgdir"/usr/{include/espeak,share/vim/registry} + DESTDIR="$pkgdir" cmake --install build + rm -rv "$pkgdir"/usr/include/espeak } |