From a15618ff6b29a9c52c08b42cb6438bd664d2087b Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Sat, 20 Jan 2018 12:39:31 +0100 Subject: Added comments to PKGBUILD --- linux/makepkg/PKGBUILD | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'linux/makepkg') diff --git a/linux/makepkg/PKGBUILD b/linux/makepkg/PKGBUILD index 95a0a54..d3a77c2 100644 --- a/linux/makepkg/PKGBUILD +++ b/linux/makepkg/PKGBUILD @@ -36,30 +36,38 @@ build() { cd "$pkgname-$pkgver" # CMake Options - # build type + # Build Type + # Debug builds don't have install rules. _cmake_options="-DCMAKE_BUILD_TYPE=Release" - # install prefix, or where should the binary be installed + # Install Prefix + # Where should the binary be installed? In this case /usr/local. _cmake_options="$_cmake_options -DCMAKE_INSTALL_PREFIX=$pkgdir/usr/local" - # compiler + # Compiler + # Flavour: no need to change the compiler, gcc works just fine _cmake_options="$_cmake_options -DCMAKE_C_COMPILER=/usr/bin/clang" _cmake_options="$_cmake_options -DCMAKE_CXX_COMPILER=/usr/bin/clang++" - # use libc++ instead of libstdc++ + # Use libc++ instead of libstdc++ + # Flavour, also requires clang #_cmake_options="$_cmake_options -DUseLibCpp=On" - # build system + # Build System + # Flavour: I use ninja, but you can comment this out, or set your own + # flavour. Don't forget to change the Build and Install though! _cmake_options="$_cmake_options -GNinja" - # Generate a makefile + # Generate Makefile cmake $_cmake_options "$srcdir/smolbote-hg" - # build + # Build ninja } package() { cd "$pkgname-$pkgver" + + # Install ninja install } -- cgit v1.2.1