summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authornick black2020-09-13 15:17:59 -0400
committernick black2020-09-13 15:17:59 -0400
commit2d4618323d474f93c51be25cf74cae1f3da534ec (patch)
treedc767e610c4c80581ad0719c40a0b32c5b89c4e2
parentdac22b1fa676446ddc8c4f626c42395d857de34b (diff)
downloadaur-2d4618323d474f93c51be25cf74cae1f3da534ec.tar.gz
build with ninja
-rw-r--r--.SRCINFO1
-rw-r--r--PKGBUILD10
2 files changed, 6 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 0d18e729a1e..3b2f5affbcf 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -12,6 +12,7 @@ pkgbase = notcurses
makedepends = python-setuptools
makedepends = doctest
makedepends = qrcodegen
+ makedepends = ninja
depends = ncurses
depends = ffmpeg
depends = libunistring
diff --git a/PKGBUILD b/PKGBUILD
index f82b3f2da47..58984a4c962 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -11,28 +11,28 @@ arch=('x86_64')
# dynamic library. Should the .so be shipped in the future, promote qrcodegen
# from a makedepends to a true depends, and use that dynamic library.
depends=('ncurses' 'ffmpeg' 'libunistring')
-makedepends=('cmake' 'pandoc' 'python-pypandoc' 'python-cffi' 'python-setuptools' 'doctest' 'qrcodegen')
+makedepends=('cmake' 'pandoc' 'python-pypandoc' 'python-cffi' 'python-setuptools' 'doctest' 'qrcodegen' 'ninja')
source=("https://github.com/dankamongmen/notcurses/archive/v${pkgver}.tar.gz")
prepare() {
mkdir -p "${pkgname}-${pkgver}/build"
cd "${pkgname}-${pkgver}/build"
- cmake .. -DCMAKE_INSTALL_PREFIX="/usr" -DCMAKE_BUILD_TYPE=RelWithDebInfo
+ cmake .. -GNinja -DCMAKE_INSTALL_PREFIX="/usr" -DCMAKE_BUILD_TYPE=RelWithDebInfo
}
build() {
cd "${pkgname}-${pkgver}/build"
- make
+ ninja
}
check() {
cd "${pkgname}-${pkgver}/build"
- make test
+ ninja test
}
package() {
cd "${pkgname}-${pkgver}/build"
- make install DESTDIR="$pkgdir"
+ ninja install DESTDIR="$pkgdir"
cd ../python
env CFLAGS="-I$pkgdir/usr/include -L../build" python setup.py install --root="$pkgdir" --optimize=1
}