summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorsum012021-08-08 12:35:02 -0400
committersum012021-08-08 12:35:02 -0400
commit180340b54b8fbaa8936dbbb34b5a6e2c2ddc76e3 (patch)
tree18572ea6fbc2c68f7b3fd4daed44ba970e3b0262 /PKGBUILD
parent023215e665aa856441fd97a93033acd3d26485a7 (diff)
downloadaur-platformfolders.tar.gz
v4.1.0
Reworked a good part of the PKGBUILD. Now it better follows convetions like the "None" release type to avoid -O3 on Cmake builds. Doxygen documentation is also now generated & installed for offline viewing.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD31
1 files changed, 21 insertions, 10 deletions
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"
}