summaryrefslogtreecommitdiff
path: root/PKGBUILD
blob: 4c48ccf2f8073db12812673575d988f88caa643c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Maintainer: Aqua-sama <aqua@iserlohn-fortress.net>

pkgname=linenoise-ng
pkgdesc='A small self-contained alternative to readline and libedit that support UTF-8 and Windows and is BSD licensed'

pkgver=1.0.1
pkgrel=1

url="https://github.com/arangodb/linenoise-ng"

arch=('x86_64')
license=('BSD-3clause')

depends=()
optdepends=()
makedepends=('cmake')
source=("$pkgname-$pkgver.tar.gz::https://github.com/arangodb/linenoise-ng/archive/v$pkgver.tar.gz")
sha512sums=('f5d0e83d750ce81dd86cf470a894c18e1c72576d312f84c1a486662506d9ca79bc987939fd7c7a283511951f7e18af19091320623b4ad5a3c939c539f5c8e9e3')

build() {
    cd $pkgname-$pkgver
    mkdir -p build
    cd build
    cmake -DCMAKE_BUILD_TYPE=Release ..
    make
}

package() {
    cd $pkgname-$pkgver/build
    make DESTDIR="$pkgdir" install
}