diff --git a/README.md b/README.md new file mode 100644 index 0000000..4618e54 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# linenoise + +A minimal, zero-config, BSD licensed, readline replacement used in Redis, MongoDB, Android and many other projects. diff --git a/files/CMakeLists.txt b/files/CMakeLists.txt new file mode 100644 index 0000000..8564a70 --- /dev/null +++ b/files/CMakeLists.txt @@ -0,0 +1,16 @@ +cmake_minimum_required(VERSION 3.0) + +project(linenoise VERSION 1.0.0 LANGUAGES C) + +add_library(linenoise SHARED linenoise.c) + +set_target_properties(linenoise PROPERTIES + VERSION ${PROJECT_VERSION} + SOVERSION 1 + PUBLIC_HEADER linenoise.h +) + +install(TARGETS linenoise + LIBRARY DESTINATION lib + PUBLIC_HEADER DESTINATION include +) diff --git a/files/linenoise.pc b/files/linenoise.pc new file mode 100644 index 0000000..c6fd78d --- /dev/null +++ b/files/linenoise.pc @@ -0,0 +1,9 @@ +prefix=/usr +includedir=${prefix}/include +libdir=${prefix}/lib + +Name: linenoise +Description: A small self-contained alternative to readline and libedit +Version: 1.0.0 +Libs: -L${libdir} -llinenoise +Cflags: -I${includedir} diff --git a/package.yml b/package.yml new file mode 100644 index 0000000..954e592 --- /dev/null +++ b/package.yml @@ -0,0 +1,21 @@ +name : linenoise +version : 1.0.0 +release : 1 +source : + - git|https://github.com/antirez/linenoise.git : 880b94130ffa5f8236392392b447ff2234b11983 +homepage : https://github.com/antirez/linenoise +license : BSD-2-Clause +component : system.devel +summary : A small self-contained alternative to readline and libedit. +description: | + A minimal, zero-config, BSD licensed, readline replacement used in Redis, MongoDB, Android and many other projects. +setup : | + cp $pkgfiles/CMakeLists.txt $workdir + %cmake_ninja \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr +build : | + %ninja_build +install : | + %ninja_install + install -Dm644 $pkgfiles/linenoise.pc -t $installdir/usr/lib/pkgconfig