summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO13
-rw-r--r--PKGBUILD31
2 files changed, 27 insertions, 17 deletions
diff --git a/.SRCINFO b/.SRCINFO
index b6abcea8eca..38663dad5db 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,16 +1,15 @@
pkgbase = platformfolders
pkgdesc = A C++ library to look for special directories like "My Documents" and "%APPDATA%" so that you do not need to write Linux, Windows and Mac OS X specific code
- pkgver = 4.0.0
- pkgrel = 2
+ pkgver = 4.1.0
+ pkgrel = 1
url = https://github.com/sago007/PlatformFolders
arch = i686
arch = x86_64
license = MIT
makedepends = cmake>=3.1.0
- makedepends = make
- depends = gcc-libs
- source = platformfolders-4.0.0.tar.gz::https://github.com/sago007/PlatformFolders/archive/4.0.0.tar.gz
- sha512sums = 89bd9b971cff55ddb051ffcf2e1bbf1678ec14c601916d65ebd4d8e46a79cf93f12cbe9c13ebd0417808f35d7031d13274cda78f009a26fbd19d71e13a5e5ac6
+ makedepends = doxygen
+ provides = libplatform_folders.so
+ source = platformfolders-4.1.0.tar.gz::https://github.com/sago007/PlatformFolders/archive/4.1.0.tar.gz
+ sha512sums = b2c7983399d9eaa8ef95f45e51b7b70626466fc14a0e53c8b497e683d63e40683cc995c75fc9529c7e969bb802cf9c92051b663901326985722aebf7618c48eb
pkgname = platformfolders
-
diff --git a/PKGBUILD b/PKGBUILD
index 18d918fd409..c2d5792f4a1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,34 +1,45 @@
# Maintainer: sum01 <sum01@protonmail.com>
pkgname=platformfolders
_realpkgname=PlatformFolders
-pkgver=4.0.0
-pkgrel=2
+pkgver=4.1.0
+pkgrel=1
pkgdesc='A C++ library to look for special directories like "My Documents" and "%APPDATA%" so that you do not need to write Linux, Windows and Mac OS X specific code'
arch=('i686' 'x86_64')
url="https://github.com/sago007/PlatformFolders"
license=('MIT')
-depends=('gcc-libs')
-makedepends=('cmake>=3.1.0' 'make')
+provides=('libplatform_folders.so')
+makedepends=('cmake>=3.1.0' 'doxygen')
source=("$pkgname-$pkgver.tar.gz::https://github.com/sago007/PlatformFolders/archive/${pkgver}.tar.gz")
-sha512sums=('89bd9b971cff55ddb051ffcf2e1bbf1678ec14c601916d65ebd4d8e46a79cf93f12cbe9c13ebd0417808f35d7031d13274cda78f009a26fbd19d71e13a5e5ac6')
+sha512sums=('b2c7983399d9eaa8ef95f45e51b7b70626466fc14a0e53c8b497e683d63e40683cc995c75fc9529c7e969bb802cf9c92051b663901326985722aebf7618c48eb')
build() {
mkdir -p "$srcdir/$_realpkgname-$pkgver/build"
cd "$srcdir/$_realpkgname-$pkgver/build"
# Install under /usr/lib instead of /usr/lib64
- cmake -DBUILD_SHARED_LIBS=ON -DBUILD_TESTING=OFF -DCMAKE_BUILD_TYPE=Release \
- -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib ..
+ cmake -DBUILD_SHARED_LIBS=ON \
+ -DBUILD_TESTING=OFF \
+ -DCMAKE_BUILD_TYPE=None \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib ..
cmake --build .
+ # Doxygen doesn't want to cooperate from inside the build dir..
+ cd ..
+ doxygen doxygen.conf
}
check() {
mkdir -p "$srcdir/$_realpkgname-$pkgver/build"
cd "$srcdir/$_realpkgname-$pkgver/build"
- cmake -DBUILD_SHARED_LIBS=ON -DBUILD_TESTING=ON -DCMAKE_BUILD_TYPE=Release \
- -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib ..
+ cmake -DBUILD_SHARED_LIBS=ON \
+ -DBUILD_TESTING=ON \
+ -DCMAKE_BUILD_TYPE=None \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib ..
cmake --build .
ctest
}
package() {
cd "$srcdir/$_realpkgname-$pkgver/build"
install -Dm644 ../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
- make DESTDIR="$pkgdir" install
+ cmake --build . --target install DESTDIR="$pkgdir"
+ mkdir -p "$pkgdir/usr/share/doc"
+ cp -rf '../doxygen/html' "$pkgdir/usr/share/doc/$pkgname"
}