Snippet and aur PKGBUILD are now in the main repository
This commit is contained in:
parent
025e95c020
commit
fb9be77a50
17 changed files with 107 additions and 5 deletions
9
aur/.gitignore
vendored
Normal file
9
aur/.gitignore
vendored
Normal file
|
@ -0,0 +1,9 @@
|
|||
# src folder
|
||||
src/
|
||||
|
||||
# pkg folder
|
||||
pkg/
|
||||
|
||||
# created package
|
||||
*.pkg.tar.xz
|
||||
*.zip
|
46
aur/PKGBUILD
Normal file
46
aur/PKGBUILD
Normal file
|
@ -0,0 +1,46 @@
|
|||
# Maintainer : praticamentetilde
|
||||
_name=libmshconsole
|
||||
_branch=master
|
||||
|
||||
pkgname=libmshconsole
|
||||
pkgver=0.40f2b2e
|
||||
pkgrel=1
|
||||
|
||||
pkgdesc='Library that provides a bash-like interface for CLI C++ programs'
|
||||
url='https://github.com/praticamentetilde/msh-console.git'
|
||||
arch=('any')
|
||||
license=('custom:unlicense')
|
||||
|
||||
depends=()
|
||||
makedepends=('git' 'gcc' 'cmake')
|
||||
optdepends=()
|
||||
|
||||
headers=('commandexecutor.h' 'command.h' 'shell.h' 'stringtoargcargv.h')
|
||||
provides=()
|
||||
conflicts=()
|
||||
|
||||
pkgver() {
|
||||
DATE='0'
|
||||
HASH=$(git ls-remote -h $url $_branch | cut -c1-7)
|
||||
echo $DATE.$HASH
|
||||
}
|
||||
|
||||
source=("$pkgname-$(pkgver).zip::https://github.com/praticamentetilde/msh-console/archive/$_branch.zip")
|
||||
sha512sums=(SKIP)
|
||||
|
||||
#prepare() {}
|
||||
|
||||
package() {
|
||||
cd msh-console-$_branch/library
|
||||
cmake CMakeLists.txt
|
||||
make
|
||||
mkdir -p "$pkgdir"/usr/include/mshconsole
|
||||
chmod 0755 "$pkgdir"/usr/include/mshconsole
|
||||
mv libmshconsole.so libmshconsole.so.1
|
||||
install -D -m644 libmshconsole.so.1 "$pkgdir"/usr/lib/libmshconsole.so.1
|
||||
ln -s "$pkgdir"/usr/lib/libmshconsole.so.1 "$pkgdir"/usr/lib/libmshconsole.so
|
||||
for i in "${headers[@]}"
|
||||
do
|
||||
install -D -m644 $i "$pkgdir"/usr/include/mshconsole/"$i"
|
||||
done
|
||||
}
|
2
aur/README.md
Normal file
2
aur/README.md
Normal file
|
@ -0,0 +1,2 @@
|
|||
# msh-console-aur
|
||||
AUR package for msh-console
|
|
@ -25,15 +25,15 @@ cmake_minimum_required(VERSION 2.8)
|
|||
|
||||
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -lpopt")
|
||||
list(APPEND SRC_LIST "command.cpp" "commandexecutor.h" "commands.cpp" "datas.cpp" "shell.cpp" "stringtoargcargv.cpp"
|
||||
"commandexecutor.cpp" "command.h" "data.cpp" "main.cpp" "shell.h" "stringtoargcargv.h")
|
||||
"commandexecutor.cpp" "command.h" "data.cpp" "${CMAKE_CURRENT_SOURCE_DIR}/../msh-console-snippet/main.cpp" "shell.h" "stringtoargcargv.h")
|
||||
|
||||
set(lib ON) #off=debug demo with main.cpp, on=library
|
||||
set(lib Off) #off=debug demo with main.cpp, on=library
|
||||
if(${lib})
|
||||
MESSAGE(STATUS "Building .so.1")
|
||||
list(REMOVE_ITEM SRC_LIST ${CMAKE_CURRENT_SOURCE_DIR}/main.cpp) #remove demo file
|
||||
list(REMOVE_ITEM SRC_LIST ${CMAKE_CURRENT_SOURCE_DIR}/../msh-console-script/main.cpp) #remove snippet file
|
||||
add_library (mshconsole SHARED ${SRC_LIST})
|
||||
else(${lib})
|
||||
MESSAGE(STATUS "Building exec (debug only)")
|
||||
MESSAGE(STATUS "Building msh-console-snippet (debug only)")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g")
|
||||
add_executable(${PROJECT_NAME} ${SRC_LIST})
|
||||
endif(${lib})
|
|
@ -195,7 +195,7 @@ namespace mshconsole {
|
|||
waitpid(pid, &status, 0);
|
||||
}
|
||||
}
|
||||
deleteParams(p.argc,p.argv);
|
||||
deleteParams(p);
|
||||
}
|
||||
return 0;
|
||||
}
|
45
snippet/.gitignore
vendored
Normal file
45
snippet/.gitignore
vendored
Normal file
|
@ -0,0 +1,45 @@
|
|||
#kate directory files
|
||||
*.directory
|
||||
|
||||
#Qt creator .pro.user
|
||||
*.pro.user
|
||||
*.cbp
|
||||
*.txt.user
|
||||
|
||||
# Compiled Object files
|
||||
*.slo
|
||||
*.lo
|
||||
*.o
|
||||
*.obj
|
||||
|
||||
# Precompiled Headers
|
||||
*.gch
|
||||
*.pch
|
||||
|
||||
# Compiled Dynamic libraries
|
||||
*.so
|
||||
*.dylib
|
||||
*.dll
|
||||
|
||||
# Fortran module files
|
||||
*.mod
|
||||
|
||||
# Compiled Static libraries
|
||||
*.lai
|
||||
*.la
|
||||
*.a
|
||||
*.lib
|
||||
|
||||
# Executables
|
||||
*.exe
|
||||
*.out
|
||||
*.app
|
||||
|
||||
# cmake
|
||||
|
||||
CMakeCache.txt
|
||||
CMakeFiles
|
||||
CMakeScripts
|
||||
Makefile
|
||||
cmake_install.cmake
|
||||
install_manifest.txt
|
Loading…
Reference in a new issue