init
All checks were successful
Build / Build project (push) Successful in 25s

This commit is contained in:
Alexander Zhirov 2025-09-23 14:51:37 +03:00
parent f235ea3aa3
commit 903d38c803
Signed by: alexander
GPG key ID: C8D8BE544A27C511
4 changed files with 49 additions and 0 deletions

3
README.md Normal file
View file

@ -0,0 +1,3 @@
# linenoise
A minimal, zero-config, BSD licensed, readline replacement used in Redis, MongoDB, Android and many other projects.

16
files/CMakeLists.txt Normal file
View file

@ -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
)

9
files/linenoise.pc Normal file
View file

@ -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}

21
package.yml Normal file
View file

@ -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