summaryrefslogtreecommitdiff
path: root/pcr/pybristol/PKGBUILD
blob: 5fb6783a609ed54910584a4f202d9d8b43966aee (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
# Maintainer (Arch): adorableGNU <adorablegnu@hushmail.com>
pkgname=pybristol
pkgver=1.0.33
pkgrel=1
pkgdesc='GUI for bristol, based on python3 and tkinter'
arch=('any')
url="https://github.com/adorableGNU/pyBristol"
depends=('python' 'bristol' 'tk')
makedepends=('git')
license=('GPL3')
source=(git+https://github.com/adorableGNU/pyBristol.git)
md5sums=('SKIP')

pkgver() {
  cd pyBristol
  echo ${pkgver%.*}.$(git rev-list --count HEAD)
}

package() {
  mkdir -p $pkgdir/opt/pyBristol
  cp -R $srcdir/pyBristol/gif $pkgdir/opt/pyBristol/
  cp -R $srcdir/pyBristol/doc $pkgdir/opt/pyBristol/
  cp -R $srcdir/pyBristol/icon $pkgdir/opt/pyBristol/
  cp $srcdir/pyBristol/default.conf $pkgdir/opt/pyBristol/
  install -D -m755 $srcdir/pyBristol/pyBristol.py $pkgdir/opt/pyBristol/pyBristol.py
  install -D -m755 $srcdir/pyBristol/pyBristol $pkgdir/usr/bin/pyBristol
  install -D -m644 $srcdir/pyBristol/pyBristol.desktop $pkgdir/usr/share/applications/pyBristol.desktop
  install -D -m644 $srcdir/pyBristol/icon/pyBristol.svg $pkgdir/usr/share/pixmaps/pyBristol.svg
  install -D -m644 $srcdir/pyBristol/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}