diff options
author | Wilken 'Akiko' Gottwalt | 2019-05-16 07:32:45 +0200 |
---|---|---|
committer | Wilken 'Akiko' Gottwalt | 2019-05-16 07:32:45 +0200 |
commit | b98deff03f11c13e1fca0bbfcbfca09f7eecbeb7 (patch) | |
tree | 0130818afcbff947181050e811f8537d7053ee7e | |
parent | 12b41c4b771d00eb52f2404c5255cba312323d66 (diff) | |
download | aur-b98deff03f11c13e1fca0bbfcbfca09f7eecbeb7.tar.gz |
bumped version to 1.7.1
- updated the fix-all patch
- updated the static and dynamic libs installation
-rw-r--r-- | .SRCINFO | 8 | ||||
-rw-r--r-- | PKGBUILD | 16 | ||||
-rw-r--r-- | fix_all_the_little_issues.patch | 54 |
3 files changed, 39 insertions, 39 deletions
@@ -1,6 +1,6 @@ pkgbase = nana pkgdesc = An opensource cross-platform GUI library written in modern C++11 for static linking - pkgver = 1.7.0 + pkgver = 1.7.1 pkgrel = 1 url = http://nanapro.org/en-us/ arch = i686 @@ -18,10 +18,10 @@ pkgbase = nana depends = libpng depends = libx11 depends = libxft - source = https://sourceforge.net/projects/nanapro/files/Nana/Nana 1.x/nana 1.7.0.zip + source = https://sourceforge.net/projects/nanapro/files/Nana/Nana 1.x/nana 1.7.1.zip source = fix_all_the_little_issues.patch - sha256sums = b54b7754d702d5a3e27191645c5305a3769d14e830b9e96ecacf2d3c4801d2a1 - sha256sums = eb11ea2cd35c59522f54730513dae4089414fbf87bfc903408de6cf6fdf3942b + sha256sums = b84131a7500c70a8cabbc46a9809ee0e3b9ec0d6bc47c33cbcbc7560609cc1ea + sha256sums = 14394fed8c1d04d9c0183ba5dbb91c54025ac27575145b4bae2a6d1fa3986ed9 pkgname = nana @@ -1,7 +1,7 @@ # Maintainer: Wilken 'Akiko' Gottwalt <akiko@mailbox.org> pkgname=nana -pkgver=1.7.0 +pkgver=1.7.1 pkgrel=1 pkgdesc="An opensource cross-platform GUI library written in modern C++11 for static linking" arch=("i686" "x86_64") @@ -9,10 +9,10 @@ url="http://nanapro.org/en-us/" license=("custom:Boost Software License") depends=("alsa-lib" "libjpeg-turbo" "libpng" "libx11" "libxft") makedepends=("alsa-lib" "cmake" "libjpeg-turbo" "libpng" "libx11" "libxft" "xorgproto") -source=("https://sourceforge.net/projects/nanapro/files/Nana/Nana 1.x/nana 1.7.0.zip" +source=("https://sourceforge.net/projects/nanapro/files/Nana/Nana 1.x/nana 1.7.1.zip" "fix_all_the_little_issues.patch") -sha256sums=('b54b7754d702d5a3e27191645c5305a3769d14e830b9e96ecacf2d3c4801d2a1' - 'eb11ea2cd35c59522f54730513dae4089414fbf87bfc903408de6cf6fdf3942b') +sha256sums=('b84131a7500c70a8cabbc46a9809ee0e3b9ec0d6bc47c33cbcbc7560609cc1ea' + '14394fed8c1d04d9c0183ba5dbb91c54025ac27575145b4bae2a6d1fa3986ed9') prepare() { cd ${srcdir}/${pkgname} @@ -48,9 +48,11 @@ build() { package() { cd ${srcdir}/${pkgname} - cp libnana.a "${pkgdir}"/ - cp libnana.so "${pkgdir}"/libnana.so.${pkgver} - cd "${pkgdir}" + make DESTDIR="${pkgdir}" install + cp ${srcdir}/${pkgname}/libnana.a ${pkgdir}/usr/lib + + cd ${pkgdir}/usr/lib + mv libnana.so libnana.so.${pkgver} ln -s libnana.so.${pkgver} libnana.so.1.7 ln -s libnana.so.${pkgver} libnana.so.1 } diff --git a/fix_all_the_little_issues.patch b/fix_all_the_little_issues.patch index ec02eafd1a56..5a757fd34093 100644 --- a/fix_all_the_little_issues.patch +++ b/fix_all_the_little_issues.patch @@ -2,14 +2,16 @@ Fixes all the little issues with that new version. This is some kind of joke, isn't it? Did they even test the stuff? Ah well... --- diff -urpN a/CMakeLists.txt b/CMakeLists.txt ---- a/CMakeLists.txt 2019-04-10 14:56:59.945587369 +0200 -+++ b/CMakeLists.txt 2019-04-10 16:03:20.072383378 +0200 -@@ -22,10 +22,10 @@ +--- a/CMakeLists.txt 2019-03-11 22:52:18.000000000 +0100 ++++ b/CMakeLists.txt 2019-05-12 18:03:25.279901510 +0200 +@@ -21,11 +21,11 @@ + # https://cmake.org/cmake/help/v3.12/module/CMakeDependentOption.html?highlight=cmakedependentoption
# cmake 3.12 have more better modern c++ support
- cmake_minimum_required(VERSION 3.12 FATAL_ERROR)
+-cmake_minimum_required(VERSION 3.12 FATAL_ERROR)
-project(nana VERSION 1.6.2
-+project(nana VERSION 1.7.0
++cmake_minimum_required(VERSION 3.12 FATAL_ERROR)
++project(nana VERSION 1.7.1
DESCRIPTION "C++ GUI library"
HOMEPAGE_URL http://nanapro.org
- LANGUAGES CXX )
@@ -18,20 +20,22 @@ diff -urpN a/CMakeLists.txt b/CMakeLists.txt ####################### Main setting of Nana targets, sources and installs #####################
diff -urpN a/build/cmake/compilers.cmake b/build/cmake/compilers.cmake ---- a/build/cmake/compilers.cmake 2019-04-10 14:56:59.945587369 +0200 -+++ b/build/cmake/compilers.cmake 2019-04-10 15:53:36.754700500 +0200 -@@ -15,7 +15,7 @@ +--- a/build/cmake/compilers.cmake 2019-03-11 22:52:18.000000000 +0100 ++++ b/build/cmake/compilers.cmake 2019-05-12 18:04:11.045296059 +0200 +@@ -14,8 +14,8 @@ +
if(CMAKE_COMPILER_IS_GNUCXX OR "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang") # AND NOT MINGW??
- target_compile_options(nana PRIVATE -Wall
+- target_compile_options(nana PRIVATE -Wall
- PUBLIC -g )
-+ PUBLIC -Os -s)
++ target_compile_options(nana PRIVATE -Wall
++ PUBLIC -Os -s)
set(THREADS_PREFER_PTHREAD_FLAG ON) # todo - test this
find_package(Threads REQUIRED)
diff -urpN a/build/cmake/enable_audio.cmake b/build/cmake/enable_audio.cmake ---- a/build/cmake/enable_audio.cmake 2019-04-10 14:56:59.945587369 +0200 -+++ b/build/cmake/enable_audio.cmake 2019-04-10 16:06:33.163862315 +0200 +--- a/build/cmake/enable_audio.cmake 2019-03-11 22:52:18.000000000 +0100 ++++ b/build/cmake/enable_audio.cmake 2019-05-16 07:08:35.652372215 +0200 @@ -4,12 +4,12 @@ option(NANA_CMAKE_ENABLE_AUDIO "Enable c if(NANA_CMAKE_ENABLE_AUDIO)
target_compile_definitions(nana PUBLIC NANA_ENABLE_AUDIO)
@@ -40,10 +44,10 @@ diff -urpN a/build/cmake/enable_audio.cmake b/build/cmake/enable_audio.cmake - if(ASOUND_FOUND)
- target_include_directories(nana PUBLIC ${ASOUND_INCLUDE_DIRS})
- target_link_libraries(nana PUBLIC ${ASOUND_LIBRARIES})
-+ find_package(ALSA) # ? https://github.com/hintjens/demidi/blob/master/Findasound.cmake
++ find_package(ALSA)
+ if(ALSA_FOUND)
+ target_include_directories(nana PUBLIC ${ALSA_INCLUDE_DIRS})
-+ target_link_libraries(nana PUBLIC ${ALSA_LIBRARIES})
++ target_link_libraries(nana PUBLIC ${ALAS_LIBRARIES})
else()
message(FATAL_ERROR "libasound is not found")
endif()
@@ -52,27 +56,21 @@ diff -urpN a/build/cmake/enable_audio.cmake b/build/cmake/enable_audio.cmake \ No newline at end of file +endif()
diff -urpN a/source/filesystem/filesystem.cpp b/source/filesystem/filesystem.cpp ---- a/source/filesystem/filesystem.cpp 2019-04-10 14:56:59.948920713 +0200 -+++ b/source/filesystem/filesystem.cpp 2019-04-10 15:01:55.913333313 +0200 -@@ -40,7 +40,7 @@ +--- a/source/filesystem/filesystem.cpp 2019-04-22 05:06:30.000000000 +0200 ++++ b/source/filesystem/filesystem.cpp 2019-05-16 07:10:08.609800194 +0200 +@@ -40,9 +40,9 @@ #include <dirent.h>
#include <cstdio>
#include <cstring>
- #include <errno.h>
+ #include <cerrno>
#include <unistd.h>
- #include <stdlib.h>
- #endif
-@@ -1045,7 +1045,7 @@ namespace nana { namespace experimental - ::fclose(stream);
- return bytes;
- }
-- ec.assign(static_cast<int>(::errno), std::generic_category());
-+ ec.assign(static_cast<int>(errno), std::generic_category());
+- #include <stdlib.h>
++ #include <cstdlib>
#endif
- return static_cast<std::uintmax_t>(-1);
- }
-@@ -1056,7 +1056,7 @@ namespace nana { namespace experimental +
+ namespace fs = std::filesystem;
+@@ -1141,7 +1141,7 @@ namespace nana { namespace experimental struct tm t;
nana::filesystem_ext::modified_file_time(p, t);
std::chrono::system_clock::time_point dateTime =std::chrono::system_clock::from_time_t( mktime(&t) );
|