Last active
December 16, 2015 12:09
-
-
Save RealGrep/5432464 to your computer and use it in GitHub Desktop.
PKGBUILD file for QMentat package in Arch Linux.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Michel Dusseault <mike dot dusseault at gmail dot com> | |
pkgname=qmentat-git | |
pkgver=0.8.1.g8c82f61 | |
pkgrel=1 | |
pkgdesc='Mental Arithmetic Trainer' | |
arch=('i686' 'x86_64') | |
url='http://realgrep.github.io/QMentat/' | |
license=('GPL3') | |
depends=('qt4') | |
makedepends=('git' 'boost') | |
source=("$pkgname"::git+https://github.com/RealGrep/QMentat.git) | |
md5sums=('SKIP') | |
pkgver() { | |
cd "$pkgname" | |
git describe | sed 's/v//; s/-/./g' | |
} | |
build() { | |
cd "$srcdir/$pkgname" | |
lrelease-qt4 QMentat.pro | |
qmake-qt4 QMentat.pro -r -spec linux-g++ CONFIG+=release | |
make | |
} | |
package() { | |
cd "$srcdir/$pkgname" | |
make INSTALL_ROOT="$pkgdir/" install | |
rm "$pkgdir/usr/share/QMentat/LICENSE" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment