dpaste.paketlendi

This commit is contained in:
milisbir 2017-08-06 04:25:25 +03:00
parent 5c06d4e97f
commit b85284d24b
4 changed files with 94 additions and 0 deletions

View File

@ -0,0 +1,18 @@
# Description: cURLpp is a C++ wrapper for libcURL.
# URL: http://curlpp.org
# Packager: milisarge
# Depends on: cmake
name=curlpp
version=0.8.1
release=1
source=(https://github.com/jpbarrette/curlpp/archive/v$version.tar.gz::$name-$version.tar.gz)
build() {
cd "curlpp-$version"
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX='/usr' -DCMAKE_INSTALL_LIBDIR='/usr/lib' ..
make
make DESTDIR="$PKG/" install
}

View File

@ -0,0 +1,21 @@
# Description: opendht tabanlı yapıştır uygulaması 64kb maks.
# URL: https://github.com/sim590/dpaste
# Packager: milisarge
# Depends on: gnutls opendht glibmm curlpp nlohmann-json libb64
name=dpaste
version=0.3.3
release=1
source=(https://github.com/sim590/dpaste/archive/$version.tar.gz::$name-$version.tar.gz)
build() {
cd "$name-$version"
./autogen.sh
./configure CPPFLAGS=-I/usr/include/nlohmann --disable-debug
make
_man_dest=${PKG}/usr/share/man/man1/dpaste.1
install -Dpvm 644 doc/dpaste.1 ${_man_dest}
gzip ${_man_dest}
install -Dpv src/dpaste ${PKG}/usr/bin/dpaste
}

View File

@ -0,0 +1,30 @@
# Description: Base64 Encoding/Decoding Routines
# URL: http://libb64.sourceforge.net
# Packager: milisarge
# Depends on:
name=libb64
version=1.2.1
release=1
source=(https://downloads.sourceforge.net/${name}/${name}-${version}.zip
https://sources.debian.net/data/main/libb/libb64/1.2-3/debian/patches/bufsiz-as-buffer-size.diff)
build() {
cd $name-$version
patch -p1 -i "$SRC"/bufsiz-as-buffer-size.diff
cd src
export CFLAGS="${CFLAGS} -fPIC"
make
export CFLAGS="${CFLAGS} -shared -Wl,-soname,${name}.so.0"
gcc ${LDFLAGS} ${CFLAGS} *.o -o ${name}.so.0
install -d "${PKG}/usr/lib"
install libb64.so.0 "${PKG}/usr/lib"
ln -sf /usr/lib/libb64.so.0 "${PKG}/usr/lib/libb64.so"
cd ..
cp -r include "${PKG}/usr"
install -Dm644 LICENSE "${PKG}"/usr/share/licenses/${name}/LICENSE
}

View File

@ -0,0 +1,25 @@
# Description: JSON for Modern C++
# URL: https://nlohmann.github.io/json/
# Packager: milisarge
# Depends on: cmake
name=nlohmann-json
version=2.1.1
release=1
source=(https://github.com/nlohmann/json/archive/v$version.tar.gz::$name-$version.tar.gz)
build() {
cd "json-$version"
mkdir -p build
cd build
cmake ../ \
-DBuildTests=OFF \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr
make
make DESTDIR=${PKG} install
install -d ${PKG}/usr/lib/
mv ${PKG}/usr/cmake ${PKG}/usr/lib/
install -Dm644 ../LICENSE.MIT ${PKG}/usr/share/licenses/nlohmann_json-git/LICENSE
}