blob: 2d7b0178b42d64d27e2e522146b0ce9e25388991 (
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
|
# Maintainer: Diego Parra <diegoparranava@protonmail.com>
pkgname='waypaper-engine'
pkgver=2.0.3
pkgrel=1
pkgdesc="A pleasant gui frontend for swww with batteries included!"
arch=('x86_64')
url="https://github.com/0bCdian/Waypaper-Engine"
license=('GLP')
depends=('swww' 'nodejs' 'socat' 'hicolor-icon-theme' 'fzf' 'jq' 'wlr-randr')
makedepends=('npm' 'git')
provides=('waypaper-engine')
_archive="Waypaper-Engine-$pkgver"
source=("$_archive.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
md5sums=('SKIP')
build() {
cd "$_archive"
npm run build
}
package() {
cd "$_archive"
install -Dm755 ./cli/waypaper-engine "$pkgdir/usr/bin/${pkgname}"
for _icons in 16x16 32x32 64x64 128x128 256x256 512x512; do
install -Dm755 "./release/linux-unpacked/resources/icons/${_icons}.png" "${pkgdir}/usr/share/icons/hicolor/${_icons}/apps/${pkgname}.png"
done
install -dm755 "$pkgdir/opt/${pkgname}"
install -Dm644 ./waypaper-engine.desktop "$pkgdir/usr/share/applications/${pkgname}.desktop"
install -Dm644 ./LICENSE "$pkgdir/usr/share/licenses/${pkgname}"
cp ./release/linux-unpacked/* -rt "$pkgdir/opt/${pkgname}"
}
|