summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 76942a5454924952f1cb6d3d62ab1c065969139e (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
_pkgname=pakku-gui
pkgname=$_pkgname-git
pkgver=0.1.1
pkgrel=1
pkgdesc="GTK frontend for pakku"
arch=("any") # If pakku and python can be installed, this too
url="https://gitlab.com/mrvik/$_pkgname"
license=("GPL2")
depends=("python" "python-gobject" "gtk3" "pakku")
makedepends=("git")
source=("git+https://gitlab.com/mrvik/$_pkgname.git")
provides=($_pkgname)
conflicts=($_pkgname)
sha256sums=('SKIP')
pkgver(){
    cd $_pkgname
    git describe --tags|sed 's+-+.+g'
}

package(){
    _libdir=$pkgdir/usr/lib/$_pkgname
    _applications=$pkgdir/usr/share/applications
    cd "$srcdir/$_pkgname"
    mkdir -p "$_libdir" "$_applications" "$pkgdir/usr/bin"
    cp *.py "$_libdir"
    cp "$_pkgname.desktop" "$_applications"
    chmod +x "$_libdir/main.py"
    ln -s "/usr/lib/$_pkgname/main.py" "$pkgdir/usr/bin/$_pkgname"
}