summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4f1f783cccd94673147c205479b0360499b01b9a (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
# Maintainer: BoopyTheFox <boopy.the.fox@gmail.com>
pkgname='hyprpaper-gen-git'
pkgver=r7.02a0a79
pkgrel=1
pkgdesc="A simple script to automate hyprpaper config generation"
arch=('any')
url="https://github.com/BoopyTheFox/hyprpaper-gen"
license=('BSD')
depends=('bash' 'hyprpaper')
makedepends=('git')
optdepends=('hyprland: detect monitors with hyprctl')
source=('hyprpaper-gen::git+https://github.com/BoopyTheFox/hyprpaper-gen.git') 
md5sums=('SKIP')

pkgver() {
    cd "${srcdir}/${pkgname%-git}"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
    cd "${srcdir}/${pkgname%-git}"
    install -Dm755 ./hyprpaper-gen.sh "$pkgdir/usr/bin/hyprpaper-gen"
    install -Dm644 ./LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
    install -Dm644 ./README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
}