summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorsum012018-07-27 18:02:56 -0400
committersum012018-07-27 18:02:56 -0400
commit023215e665aa856441fd97a93033acd3d26485a7 (patch)
tree40e993e0d5d0464dccd5dfd5b0603081e63b445c /PKGBUILD
parentf8f571934a2c532b17c2724fba6a24a8b0c32882 (diff)
downloadaur-023215e665aa856441fd97a93033acd3d26485a7.tar.gz
Minor touchups
Add missing gcc-libs dep Line-break the long command Use make install over cmake build+install command
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD11
1 files changed, 7 insertions, 4 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 7ad0628b529..18d918fd409 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,11 +2,12 @@
pkgname=platformfolders
_realpkgname=PlatformFolders
pkgver=4.0.0
-pkgrel=1
+pkgrel=2
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')
source=("$pkgname-$pkgver.tar.gz::https://github.com/sago007/PlatformFolders/archive/${pkgver}.tar.gz")
sha512sums=('89bd9b971cff55ddb051ffcf2e1bbf1678ec14c601916d65ebd4d8e46a79cf93f12cbe9c13ebd0417808f35d7031d13274cda78f009a26fbd19d71e13a5e5ac6')
@@ -14,18 +15,20 @@ build() {
mkdir -p "$srcdir/$_realpkgname-$pkgver/build"
cd "$srcdir/$_realpkgname-$pkgver/build"
# Install under /usr/lib instead of /usr/lib64
- cmake -DBUILD_TESTING=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$pkgdir/usr" -DCMAKE_INSTALL_LIBDIR=lib ..
+ cmake -DBUILD_SHARED_LIBS=ON -DBUILD_TESTING=OFF -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib ..
cmake --build .
}
check() {
mkdir -p "$srcdir/$_realpkgname-$pkgver/build"
cd "$srcdir/$_realpkgname-$pkgver/build"
- cmake -DBUILD_TESTING=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$pkgdir/usr" -DCMAKE_INSTALL_LIBDIR=lib ..
+ cmake -DBUILD_SHARED_LIBS=ON -DBUILD_TESTING=ON -DCMAKE_BUILD_TYPE=Release \
+ -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"
- cmake --build . --target install
+ make DESTDIR="$pkgdir" install
}