Skip to content

Instantly share code, notes, and snippets.

@RealGrep
Last active December 16, 2015 12:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RealGrep/5432464 to your computer and use it in GitHub Desktop.
Save RealGrep/5432464 to your computer and use it in GitHub Desktop.
PKGBUILD file for QMentat package in Arch Linux.
# 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