blob: fedcc33c35aab1a7ba74e8d29313a5a6f35e294f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
pkgname=brainworkshop-git
pkgver=r236.c9548bd
pkgrel=1
pkgdesc="Brain Workshop is a free open-source version of the Dual N-Back mental exercise"
arch=('any')
url="https://github.com/samcv/brainworkshop"
license=('GPL')
depends=('python-pyglet' 'openal' 'ffmpeg')
makedepends=('git')
install='brainworkshop.install'
provides=('brainworkshop')
conflicts=('brainworkshop')
source=("git+https://github.com/samcv/brainworkshop.git"
brainworkshop.sh
brainworkshop.desktop)
sha256sums=('SKIP'
'213d8d5763f29da5f3ec65811e9c63052ca615cf770233957ed8bc9e3b43557c'
'1e645c18ce0648f82285da25a5bbbad1e63e282bfe9d5c31329eb9d04c23f21c')
pkgver() {
cd "$srcdir/brainworkshop"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare () {
cd "${srcdir}/brainworkshop"
}
package() {
#Data
_datadir="${pkgdir}/usr/share/brainworkshop"
install -d ${_datadir}
cp -a ${srcdir}/brainworkshop/{brainworkshop.py,res,data} ${_datadir}
#Docs
_docdir=${pkgdir}/usr/share/doc/brainworkshop
install -d "${_docdir}"
install -D -m644 "${srcdir}/brainworkshop/Readme.md" "${_docdir}"
#Launcher and Icon
install -Dm75 "${srcdir}/brainworkshop.sh" "${pkgdir}/usr/bin/brainworkshop"
install -D -m644 "${srcdir}/brainworkshop.desktop" "${pkgdir}/usr/share/applications/brainworkshop.desktop"
install -D -m644 "${srcdir}/brainworkshop/res/misc/brain/brain.png" "${pkgdir}/usr/share/pixmaps/brainworkshop.png"
}
|