Update package for own projects
This commit is contained in:
parent
675230af8b
commit
69f9e4045e
|
@ -5,7 +5,7 @@
|
|||
|
||||
_reponame=cpp-utilities
|
||||
pkgname=c++utilities
|
||||
pkgver=4.1.0
|
||||
pkgver=4.2.0
|
||||
pkgrel=1
|
||||
arch=('i686' 'x86_64')
|
||||
pkgdesc='Common C++ classes and routines such as argument parser, IO and conversion utilities'
|
||||
|
@ -16,7 +16,7 @@ makedepends=('cmake')
|
|||
checkdepends=('cppunit')
|
||||
url="https://github.com/Martchus/${_reponame}"
|
||||
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/Martchus/${_reponame}/archive/v${pkgver}.tar.gz")
|
||||
sha256sums=('ae00eb82754d9d49b0956444079bb1bcccd345e7ecaf06e3e91f33c81ffe4cbf')
|
||||
sha256sums=('5f247a1b69f68ac8e7863caecb3ad0d644e136d5fa9effbe73bd252586f03fdd')
|
||||
|
||||
build() {
|
||||
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
_name=c++utilities
|
||||
_reponame=cpp-utilities
|
||||
pkgname=$_name-doc
|
||||
pkgver=4.1.0
|
||||
pkgver=4.2.0
|
||||
pkgrel=1
|
||||
arch=('any')
|
||||
pkgdesc='Common C++ classes and routines such as argument parser, IO and conversion utilities (API documentation)'
|
||||
|
@ -14,7 +14,7 @@ license=('GPL')
|
|||
makedepends=('cmake' 'doxygen' 'dia' 'graphviz')
|
||||
url="https://github.com/Martchus/${_reponame}"
|
||||
source=("${_name}-${pkgver}.tar.gz::https://github.com/Martchus/${_reponame}/archive/v${pkgver}.tar.gz")
|
||||
sha256sums=('ae00eb82754d9d49b0956444079bb1bcccd345e7ecaf06e3e91f33c81ffe4cbf')
|
||||
sha256sums=('5f247a1b69f68ac8e7863caecb3ad0d644e136d5fa9effbe73bd252586f03fdd')
|
||||
|
||||
build() {
|
||||
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
_reponame=cpp-utilities
|
||||
pkgname=mingw-w64-c++utilities
|
||||
_name=${pkgname#mingw-w64-}
|
||||
pkgver=4.1.0
|
||||
pkgver=4.2.0
|
||||
pkgrel=1
|
||||
arch=('any')
|
||||
pkgdesc='Common C++ classes and routines such as argument parser, IO and conversion utilities (mingw-w64)'
|
||||
|
@ -16,33 +16,27 @@ optdepends=("$pkgname-doc: API documentation")
|
|||
makedepends=('mingw-w64-gcc' 'mingw-w64-cmake')
|
||||
url="https://github.com/Martchus/${_reponame}"
|
||||
source=("${_name}-${pkgver}.tar.gz::https://github.com/Martchus/${_reponame}/archive/v${pkgver}.tar.gz")
|
||||
sha256sums=('ae00eb82754d9d49b0956444079bb1bcccd345e7ecaf06e3e91f33c81ffe4cbf')
|
||||
sha256sums=('5f247a1b69f68ac8e7863caecb3ad0d644e136d5fa9effbe73bd252586f03fdd')
|
||||
options=(!buildflags staticlibs !strip !emptydirs)
|
||||
_architectures='i686-w64-mingw32 x86_64-w64-mingw32'
|
||||
[[ $NO_STATIC_LIBS ]] || _configurations+=('static: -DENABLE_STATIC_LIBS:BOOL=ON -DDISABLE_SHARED_LIBS:BOOL=ON')
|
||||
[[ $NO_SHARED_LIBS ]] || _configurations+=('shared: -DENABLE_STATIC_LIBS:BOOL=OFF -DDISABLE_SHARED_LIBS:BOOL=OFF')
|
||||
[[ $NO_STATIC_LIBS ]] || _configurations='-DENABLE_STATIC_LIBS:BOOL=ON'
|
||||
[[ $NO_SHARED_LIBS ]] && _configurations+=' -DDISABLE_SHARED_LIBS:BOOL=ON'
|
||||
|
||||
build() {
|
||||
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
|
||||
for _arch in ${_architectures}; do
|
||||
for _config in "${_configurations[@]}"; do
|
||||
msg2 "Building ${_config%%: *} version for ${_arch}"
|
||||
mkdir -p "build-${_arch}-${_config%%: *}" && pushd "build-${_arch}-${_config%%: *}"
|
||||
${_arch}-cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="/usr/${_arch}" ${_config#*: } ../
|
||||
make
|
||||
popd
|
||||
done
|
||||
mkdir -p "build-${_arch}" && pushd "build-${_arch}"
|
||||
${_arch}-cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="/usr/${_arch}" ${_configurations} ../
|
||||
make
|
||||
popd
|
||||
done
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
|
||||
for _arch in ${_architectures}; do
|
||||
for _config in "${_configurations[@]}"; do
|
||||
msg2 "Packaging ${_config%%: *} version for ${_arch}"
|
||||
mkdir -p "build-${_arch}-${_config%%: *}" && pushd "build-${_arch}-${_config%%: *}"
|
||||
make DESTDIR="${pkgdir}" install-mingw-w64-strip
|
||||
popd
|
||||
done
|
||||
mkdir -p "build-${_arch}" && pushd "build-${_arch}"
|
||||
make DESTDIR="${pkgdir}" install-mingw-w64-strip
|
||||
popd
|
||||
done
|
||||
}
|
||||
|
|
|
@ -19,30 +19,24 @@ source=("${_name}-${pkgver}.tar.gz::https://github.com/Martchus/${_reponame}/arc
|
|||
sha256sums=('be8a4516787200fca740365a090cc2767ee50753152e0f0d59b631da60d490ee')
|
||||
options=(!buildflags staticlibs !strip !emptydirs)
|
||||
_architectures='i686-w64-mingw32 x86_64-w64-mingw32'
|
||||
[[ $NO_STATIC_LIBS ]] || _configurations+=('static: -DENABLE_STATIC_LIBS:BOOL=ON -DDISABLE_SHARED_LIBS:BOOL=ON')
|
||||
[[ $NO_SHARED_LIBS ]] || _configurations+=('shared: -DENABLE_STATIC_LIBS:BOOL=OFF -DDISABLE_SHARED_LIBS:BOOL=OFF')
|
||||
[[ $NO_STATIC_LIBS ]] || _configurations='-DENABLE_STATIC_LIBS:BOOL=ON'
|
||||
[[ $NO_SHARED_LIBS ]] && _configurations+=' -DDISABLE_SHARED_LIBS:BOOL=ON'
|
||||
|
||||
build() {
|
||||
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
|
||||
for _arch in ${_architectures}; do
|
||||
for _config in "${_configurations[@]}"; do
|
||||
msg2 "Building ${_config%%: *} version for ${_arch}"
|
||||
mkdir -p "build-${_arch}-${_config%%: *}" && pushd "build-${_arch}-${_config%%: *}"
|
||||
${_arch}-cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="/usr/${_arch}" ${_config#*: } ../
|
||||
make
|
||||
popd
|
||||
done
|
||||
mkdir -p "build-${_arch}" && pushd "build-${_arch}"
|
||||
${_arch}-cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="/usr/${_arch}" ${_configurations} ../
|
||||
make
|
||||
popd
|
||||
done
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
|
||||
for _arch in ${_architectures}; do
|
||||
for _config in "${_configurations[@]}"; do
|
||||
msg2 "Packaging ${_config%%: *} version for ${_arch}"
|
||||
mkdir -p "build-${_arch}-${_config%%: *}" && pushd "build-${_arch}-${_config%%: *}"
|
||||
make DESTDIR="${pkgdir}" install-mingw-w64-strip
|
||||
popd
|
||||
done
|
||||
mkdir -p "build-${_arch}" && pushd "build-${_arch}"
|
||||
make DESTDIR="${pkgdir}" install-mingw-w64-strip
|
||||
popd
|
||||
done
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
_reponame=qtutilities
|
||||
pkgname=qtutilities
|
||||
pkgver=5.0.0
|
||||
pkgver=5.1.0
|
||||
pkgrel=1
|
||||
arch=('i686' 'x86_64')
|
||||
pkgdesc='Common Qt related C++ classes and routines used by my applications such as dialogs, widgets and models'
|
||||
|
@ -15,7 +15,7 @@ makedepends=('cmake')
|
|||
optdepends=("$pkgname-doc: API documentation")
|
||||
url="https://github.com/Martchus/${_reponame}"
|
||||
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/Martchus/${_reponame}/archive/v${pkgver}.tar.gz")
|
||||
sha256sums=('3f8a6ea49b889febbb012674c773140793ad974731616b7142917ff53ed29cc0')
|
||||
sha256sums=('d4690094f4f2dd942e3e623cac210d8e9676e9d8a73a5115f42aa66b87bcd4c5')
|
||||
|
||||
build() {
|
||||
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
_name=qtutilities
|
||||
_reponame=$_name
|
||||
pkgname=$_name-doc
|
||||
pkgver=5.0.0
|
||||
pkgver=5.1.0
|
||||
pkgrel=1
|
||||
arch=('any')
|
||||
pkgdesc='Common Qt related C++ classes and routines used by my applications such as dialogs, widgets and models (API documentation)'
|
||||
|
@ -14,7 +14,7 @@ license=('GPL')
|
|||
makedepends=('cmake' 'doxygen' 'dia' 'graphviz' 'c++utilities' 'qt5-base')
|
||||
url="https://github.com/Martchus/${_reponame}"
|
||||
source=("${_name}-${pkgver}.tar.gz::https://github.com/Martchus/${_reponame}/archive/v${pkgver}.tar.gz")
|
||||
sha256sums=('3f8a6ea49b889febbb012674c773140793ad974731616b7142917ff53ed29cc0')
|
||||
sha256sums=('d4690094f4f2dd942e3e623cac210d8e9676e9d8a73a5115f42aa66b87bcd4c5')
|
||||
|
||||
build() {
|
||||
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
_reponame=qtutilities
|
||||
pkgname=mingw-w64-qtutilities
|
||||
_name=${pkgname#mingw-w64-}
|
||||
pkgver=5.0.0
|
||||
pkgver=5.1.0
|
||||
pkgrel=1
|
||||
arch=('any')
|
||||
pkgdesc='Common Qt related C++ classes and routines used by my applications such as dialogs, widgets and models (mingw-w64)'
|
||||
|
@ -16,39 +16,32 @@ makedepends=('mingw-w64-gcc' 'mingw-w64-cmake')
|
|||
optdepends=("$pkgname-doc: API documentation")
|
||||
url="https://github.com/Martchus/${_reponame}"
|
||||
source=("${_name}-${pkgver}.tar.gz::https://github.com/Martchus/${_reponame}/archive/v${pkgver}.tar.gz")
|
||||
sha256sums=('3f8a6ea49b889febbb012674c773140793ad974731616b7142917ff53ed29cc0')
|
||||
sha256sums=('d4690094f4f2dd942e3e623cac210d8e9676e9d8a73a5115f42aa66b87bcd4c5')
|
||||
options=(!buildflags staticlibs !strip !emptydirs)
|
||||
_architectures='i686-w64-mingw32 x86_64-w64-mingw32'
|
||||
[[ $NO_STATIC_LIBS ]] ||
|
||||
makedepends+=('mingw-w64-qt5-base-static' 'mingw-w64-qt5-svg') \
|
||||
optdepends+=('mingw-w64-qt5-base-static: use of static library'
|
||||
'mingw-w64-qt5-svg: use of static library') \
|
||||
_configurations+=('static: -DENABLE_STATIC_LIBS:BOOL=ON -DDISABLE_SHARED_LIBS:BOOL=ON')
|
||||
[[ $NO_SHARED_LIBS ]] || _configurations+=('shared: -DENABLE_STATIC_LIBS:BOOL=OFF -DDISABLE_SHARED_LIBS:BOOL=OFF')
|
||||
_configurations='-DENABLE_STATIC_LIBS:BOOL=ON'
|
||||
[[ $NO_SHARED_LIBS ]] && _configurations+=' -DDISABLE_SHARED_LIBS:BOOL=ON'
|
||||
|
||||
build() {
|
||||
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
|
||||
export PREVENT_FORCING_SHARED_LIBS=ON
|
||||
for _arch in ${_architectures}; do
|
||||
for _config in "${_configurations[@]}"; do
|
||||
msg2 "Building ${_config%%: *} version for ${_arch}"
|
||||
mkdir -p "build-${_arch}-${_config%%: *}" && pushd "build-${_arch}-${_config%%: *}"
|
||||
echo ${_arch}-cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="/usr/${_arch}" ${_config#*: } ../
|
||||
${_arch}-cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="/usr/${_arch}" ${_config#*: } ../
|
||||
make
|
||||
popd
|
||||
done
|
||||
mkdir -p "build-${_arch}" && pushd "build-${_arch}"
|
||||
${_arch}-cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="/usr/${_arch}" ${_configurations} ../
|
||||
make
|
||||
popd
|
||||
done
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
|
||||
for _arch in ${_architectures}; do
|
||||
for _config in "${_configurations[@]}"; do
|
||||
msg2 "Packaging ${_config%%: *} version for ${_arch}"
|
||||
mkdir -p "build-${_arch}-${_config%%: *}" && pushd "build-${_arch}-${_config%%: *}"
|
||||
make DESTDIR="${pkgdir}" install-mingw-w64-strip
|
||||
popd
|
||||
done
|
||||
mkdir -p "build-${_arch}" && pushd "build-${_arch}"
|
||||
make DESTDIR="${pkgdir}" install-mingw-w64-strip
|
||||
popd
|
||||
done
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ _webview_provider=webkit
|
|||
|
||||
_reponame=syncthingtray
|
||||
pkgname=syncthingtray
|
||||
pkgver=0.0.2
|
||||
pkgver=0.0.3
|
||||
pkgrel=1
|
||||
arch=('i686' 'x86_64')
|
||||
pkgdesc='Tray application for Syncthing'
|
||||
|
@ -20,7 +20,7 @@ depends=('qtutilities' 'qt5-svg' 'openssl' 'desktop-file-utils' 'xdg-utils')
|
|||
makedepends=('cmake' 'qt5-tools')
|
||||
url="https://github.com/Martchus/${_reponame}"
|
||||
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/Martchus/${_reponame}/archive/v${pkgver}.tar.gz")
|
||||
sha256sums=('311731a3541c31e4f98209a1f42460f13ebf4b5e4e5d1270a8768b9daac54862')
|
||||
sha256sums=('d542adf2d612e81ba9d26ae235b9f902d1d8c747ac4dece938122d285e1841f7')
|
||||
|
||||
build() {
|
||||
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
|
||||
|
|
|
@ -9,7 +9,7 @@ _webview_provider=none
|
|||
_reponame=syncthingtray
|
||||
pkgname=mingw-w64-syncthingtray
|
||||
_name=${pkgname#mingw-w64-}
|
||||
pkgver=0.0.2
|
||||
pkgver=0.0.3
|
||||
pkgrel=1
|
||||
arch=('any')
|
||||
pkgdesc='Tray application for Syncthing (mingw-w64)'
|
||||
|
@ -21,9 +21,14 @@ depends=('mingw-w64-crt' 'mingw-w64-qt5-svg' 'mingw-w64-qtutilities' 'mingw-w64-
|
|||
makedepends=('mingw-w64-gcc' 'mingw-w64-cmake' 'mingw-w64-qt5-tools' 'ffmpeg')
|
||||
url="https://github.com/Martchus/${_reponame}"
|
||||
source=("${_name}-${pkgver}.tar.gz::https://github.com/Martchus/${_reponame}/archive/v${pkgver}.tar.gz")
|
||||
sha256sums=('311731a3541c31e4f98209a1f42460f13ebf4b5e4e5d1270a8768b9daac54862')
|
||||
sha256sums=('d542adf2d612e81ba9d26ae235b9f902d1d8c747ac4dece938122d285e1841f7')
|
||||
options=(!buildflags staticlibs !strip !emptydirs)
|
||||
_architectures='i686-w64-mingw32 x86_64-w64-mingw32'
|
||||
[[ $NO_STATIC_LIBS ]] ||
|
||||
makedepends+=('mingw-w64-qt5-base-static') \
|
||||
optdepends+=('mingw-w64-qt5-base-static: use of static library')
|
||||
_configurations='-DENABLE_STATIC_LIBS:BOOL=ON'
|
||||
[[ $NO_SHARED_LIBS ]] && _configurations+=' -DDISABLE_SHARED_LIBS:BOOL=ON'
|
||||
|
||||
build() {
|
||||
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
|
||||
|
@ -33,6 +38,7 @@ build() {
|
|||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_INSTALL_PREFIX="/usr/${_arch}" \
|
||||
-DWEBVIEW_PROVIDER="${_webview_provider}" \
|
||||
${_configurations} \
|
||||
../
|
||||
make
|
||||
popd
|
||||
|
|
|
@ -19,30 +19,24 @@ source=("${_name}-${pkgver}.tar.gz::https://github.com/Martchus/${_reponame}/arc
|
|||
sha256sums=('0d4bb99ec71a2d11bb9b9ae766e082d0092f82b7d2c7b4d6d760eca9386afbb4')
|
||||
options=(!buildflags staticlibs !strip !emptydirs)
|
||||
_architectures='i686-w64-mingw32 x86_64-w64-mingw32'
|
||||
[[ $NO_STATIC_LIBS ]] || _configurations+=('static: -DENABLE_STATIC_LIBS:BOOL=ON -DDISABLE_SHARED_LIBS:BOOL=ON')
|
||||
[[ $NO_SHARED_LIBS ]] || _configurations+=('shared: -DENABLE_STATIC_LIBS:BOOL=OFF -DDISABLE_SHARED_LIBS:BOOL=OFF')
|
||||
[[ $NO_STATIC_LIBS ]] || _configurations='-DENABLE_STATIC_LIBS:BOOL=ON'
|
||||
[[ $NO_SHARED_LIBS ]] && _configurations+=' -DDISABLE_SHARED_LIBS:BOOL=ON'
|
||||
|
||||
build() {
|
||||
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
|
||||
for _arch in ${_architectures}; do
|
||||
for _config in "${_configurations[@]}"; do
|
||||
msg2 "Building ${_config%%: *} version for ${_arch}"
|
||||
mkdir -p "build-${_arch}-${_config%%: *}" && pushd "build-${_arch}-${_config%%: *}"
|
||||
${_arch}-cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="/usr/${_arch}" ${_config#*: } ../
|
||||
make
|
||||
popd
|
||||
done
|
||||
mkdir -p "build-${_arch}" && pushd "build-${_arch}"
|
||||
${_arch}-cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="/usr/${_arch}" ${_configurations} ../
|
||||
make
|
||||
popd
|
||||
done
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
|
||||
for _arch in ${_architectures}; do
|
||||
for _config in "${_configurations[@]}"; do
|
||||
msg2 "Packaging ${_config%%: *} version for ${_arch}"
|
||||
mkdir -p "build-${_arch}-${_config%%: *}" && pushd "build-${_arch}-${_config%%: *}"
|
||||
make DESTDIR="${pkgdir}" install-mingw-w64-strip
|
||||
popd
|
||||
done
|
||||
mkdir -p "build-${_arch}" && pushd "build-${_arch}"
|
||||
make DESTDIR="${pkgdir}" install-mingw-w64-strip
|
||||
popd
|
||||
done
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue