summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 38f1ccd64c127c428da9dc8eada0cc2bd32f7f33 (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
# Maintainer: meister1593 <leruop@gmail.com>
pkgname=tcgui-git
_pkgname=tcgui
pkgver=57d33c4
pkgrel=1
pkgdesc="Small software application for transforming your voice or music in real-time."
arch=('any')
url="https://github.com/tum-lkn/tcgui"
license=('custom:MIT')
depends=('python' 'python-flask')
makedepends=('git')
source=('git+https://github.com/tum-lkn/tcgui')
sha256sums=('SKIP')
provides=('tcgui')
conflicts=('tcgui')

pkgver() {
  cd "$_pkgname"
  git describe --always
}

package() {
    # init dirs 
    install -d ${pkgdir}/usr/bin
    install -d ${pkgdir}/opt/tcgui
    
    # copy all files to package
    cp -a ${srcdir}/${_pkgname}/* ${pkgdir}/opt/${_pkgname}
    
    # make startup script and fix permissions
    echo '#!/bin/bash' > ${pkgdir}/usr/bin/${_pkgname}
    echo "python3 /opt/${_pkgname}/main.py" >> ${pkgdir}/usr/bin/${_pkgname}
    chmod 755 ${pkgdir}/usr/bin/${_pkgname}
}