aboutsummaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
Diffstat (limited to 'linux')
-rw-r--r--linux/makepkg/PKGBUILD22
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
}