summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 600a2a102e21842e8e37b9f54089c41d689866ef (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
pkgname=dotpusher
pkgver=0.1.3
pkgrel=1
pkgdesc="Declarative dotfiles manager using Git and JSON state tracking"
arch=('x86_64')
url="https://github.com/maarutan/dotpusher"
license=('MIT')
depends=('python')
makedepends=('unzip')
source=("dotpusher.zip::https://github.com/maarutan/dotpusher/releases/download/v${pkgver}/dotpusher.zip")
sha256sums=('03703670f305d90baed2a51cf45f4344a7b49f3faa500a8d367f565a618b9c11')

package() {
    cd "$srcdir" || exit

    unzip -o "dotpusher.zip" -d dotpusher || exit

    cd dotpusher || exit

    install -Dm755 index.py "$pkgdir/usr/bin/dotpusher"

    install -d "$pkgdir/usr/share/dotpusher"
    cp -r core modules "$pkgdir/usr/share/dotpusher/"

    install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}