summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0f4a40d7f4e7abad848a821cb976d515aea86ec9 (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
# Maintainer: Jonathan Haylett <jonathan@haylett.dev>
_pkgbasename=i3-resurrect
pkgname=$_pkgbasename
pkgver=1.4.5
pkgrel=1
pkgdesc='A simple but flexible solution to saving and restoring i3 workspace layouts'
arch=('any')
url='http://github.com/JonnyHaystack/i3-resurrect'
license=('GPL')
depends=('python' 'python-psutil' 'python-i3ipc' 'python-click' 'python-natsort'
         'xorg-xprop' 'xdotool')
makedepends=('python-setuptools')
optdepends=('i3-wm')
provides=('i3-resurrect')
conflicts=('i3-resurrect-git')
source=("https://github.com/JonnyHaystack/i3-resurrect/archive/$pkgver.tar.gz")
md5sums=('cfcf06a99be848183412a9ef212e4cab')

build() {
    cd "$srcdir/$_pkgbasename-$pkgver"
    python setup.py bdist
}

package() {
    _pkg=$(ls "$srcdir/$_pkgbasename-$pkgver/dist/")
    tar -xC "$pkgdir/" -f "$srcdir/$_pkgbasename-$pkgver/dist/$_pkg"
    mkdir -p "$pkgdir/usr/bin"
    _python=$(ls "$pkgdir/usr/lib/")
}