diff options
author | zhongxiong | 2024-05-09 21:23:37 +0800 |
---|---|---|
committer | zhongxiong | 2024-05-09 21:23:37 +0800 |
commit | 2809e9abef85d6765aee4873a347f61546054a66 (patch) | |
tree | c5d138ad3a055406d674455a94152105c3a2c3ea | |
parent | 4d121c30222f46a8361675872fa08f9d1b952e2c (diff) | |
download | aur-2809e9abef85d6765aee4873a347f61546054a66.tar.gz |
fix xlstypes.h include bug
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 3 | ||||
-rw-r--r-- | xlstypes.patch | 14 |
3 files changed, 17 insertions, 3 deletions
@@ -1,7 +1,7 @@ pkgbase = libxls pkgdesc = Read binary Excel files from C/C++ pkgver = 1.6.2 - pkgrel = 1 + pkgrel = 2 url = https://github.com/libxls/libxls arch = i686 arch = x86_64 @@ -12,4 +12,3 @@ pkgbase = libxls sha512sums = 9eb8dc78d9070ebe5af2629a358cea0f41db9e4accdfc2651093eaffaaeff5595e986346fa41a3b57740234f4a70d5aa394e5234f90e94ba41a782de574e4d00 pkgname = libxls - @@ -2,7 +2,7 @@ pkgname=libxls pkgver=1.6.2 -pkgrel=1 +pkgrel=2 pkgdesc='Read binary Excel files from C/C++' arch=('i686' 'x86_64') url='https://github.com/libxls/libxls' @@ -15,6 +15,7 @@ sha512sums=('9eb8dc78d9070ebe5af2629a358cea0f41db9e4accdfc2651093eaffaaeff5595e9 prepare() { cd "${srcdir}/${pkgname}-${pkgver}" autoreconf -fiv + patch -p0 < ../../xlstypes.patch #fix xlstypes include bug } build() { diff --git a/xlstypes.patch b/xlstypes.patch new file mode 100644 index 000000000000..6bbef3e123ad --- /dev/null +++ b/xlstypes.patch @@ -0,0 +1,14 @@ +--- ./include/libxls/xlstypes.h 2021-01-04 12:31:47.000000000 +0800 ++++ ./include/libxls/xlstypes.h 2024-05-09 19:15:09.855514549 +0800 +@@ -36,11 +36,7 @@ + #ifndef XLS_TYPES_INC + #define XLS_TYPES_INC + +-#ifdef __cplusplus +-#include <cstdint> +-#else + #include <stdint.h> +-#endif + #include <sys/types.h> + + typedef unsigned char BYTE; |