aboutsummaryrefslogtreecommitdiff
path: root/linux/makepkg
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-01-03 17:55:26 +0100
committerAqua-sama <aqua@iserlohn-fortress.net>2018-01-03 17:55:26 +0100
commite72b0bc3e7a93409e505b3f0dc3381d6510f7860 (patch)
tree23e345995d5d2e6442140e12ee10ff79f4b8507f /linux/makepkg
parentChanged from qbs to cmake (diff)
downloadsmolbote-e72b0bc3e7a93409e505b3f0dc3381d6510f7860.tar.xz
Updated PKGBUILD
Diffstat (limited to 'linux/makepkg')
-rw-r--r--linux/makepkg/PKGBUILD22
1 files changed, 12 insertions, 10 deletions
diff --git a/linux/makepkg/PKGBUILD b/linux/makepkg/PKGBUILD
index 69cea4b..89206d3 100644
--- a/linux/makepkg/PKGBUILD
+++ b/linux/makepkg/PKGBUILD
@@ -10,30 +10,32 @@ arch=('x86_64')
license=('GPL3')
depends=('qt5-base' 'qt5-webengine')
-makedepends=('git' 'qt5-tools' 'cmake' 'libconfig' 'pkg-config')
+makedepends=('git' 'cmake' 'libconfig' 'pkg-config')
-source=("git+git://neueland.iserlohn-fortress.net/smolbote.git")
+source=("smolbote-git::git+git://neueland.iserlohn-fortress.net/smolbote.git")
sha512sums=('SKIP')
-prepare() {
- # any patches go here
-}
+# any patches go here
+#prepare() {
+#}
pkgver() {
- cd smolbote
+ cd smolbote-git
echo "$(git describe --long --tags | tr - .)"
}
build() {
+ rm -rf "$pkgname-$pkgver"
+ mkdir "$pkgname-$pkgver"
cd "$pkgname-$pkgver"
# Generate a makefile
# Adjust the install prefix as necessary, default is /usr/local/bin
- cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local "$srcdir"
+ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local "$srcdir/smolbote-git"
# Use this if you want to link with libc++ instead
- # This requires clang, since gcc doesn't understand the concept of not using GPL software
- #cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DUseLibCpp=On "$srcdir"
+ # This requires clang, since gcc doesn't understand the concept of not using libstdc++
+ #cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DUseLibCpp=On "$srcdir/smolbote-git"
# build, with 4 threads
make -j 4
@@ -41,5 +43,5 @@ build() {
package() {
cd "$pkgname-$pkgver"
- make install
+ make DESTDIR="$pkgdir/" install
}