keep a copy of our arch PKGBUILD

This commit is contained in:
nick black 2020-04-11 13:48:04 -04:00
parent 24a9343b0b
commit 2c4f17bc65
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

37
tools/PKGBUILD Normal file
View File

@ -0,0 +1,37 @@
# Maintainer: Nick Black <dankamongmen@gmail.com>
pkgname=notcurses
pkgver=1.2.9
pkgrel=1
pkgdesc="Modern TUI library"
url="https://nick-black.com/dankwiki/index.php/Notcurses"
license=('Apache')
arch=('x86_64')
depends=('ncurses' 'ffmpeg')
makedepends=('cmake' 'pandoc' 'python-cffi' 'python-setuptools' 'doctest')
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
}
build() {
cd "${pkgname}-${pkgver}/build"
make
}
check() {
cd "${pkgname}-${pkgver}/build"
make test
}
package() {
cd "${pkgname}-${pkgver}/build"
make install DESTDIR="$pkgdir"
cd python
python setup.py install --root="$pkgdir" --optimize=1
}
sha256sums=('fafd05eac242548af2aacb9c2df05c2e6d230097eed6f47144e11b30f464632b')