diff options
| author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-01-20 12:39:31 +0100 | 
|---|---|---|
| committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-01-20 12:39:31 +0100 | 
| commit | a15618ff6b29a9c52c08b42cb6438bd664d2087b (patch) | |
| tree | 79bb9c3c484dd2aad6ee8e83e9f1d08d18813fe1 /linux | |
| parent | Added revision and branch to about dialog (diff) | |
| download | smolbote-a15618ff6b29a9c52c08b42cb6438bd664d2087b.tar.xz | |
Added comments to PKGBUILD
Diffstat (limited to 'linux')
| -rw-r--r-- | linux/makepkg/PKGBUILD | 22 | 
1 files changed, 15 insertions, 7 deletions
| 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  } | 
