summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8a9316dd855a929c22ee53dfb4c37d97a0dc7bbb (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
32
#Maintainer: Noble Eugene <nobleeugene2005@gmail.com>
pkgname="swengine"
pkgver="0.15"
pkgrel=1
pkgdesc="Download and apply live wallpapers with swww"
arch=("x86_64")
depends=("vlc" "ffmpeg")
optdepends=("swww-git: For wallpapers on wlroots compositors")
makedepends=("dotnet-sdk" "git")
url="https://www.github.com/eugenenoble2005/swengine"


prepare(){
    rm -rf swengine
    #this is probably not the right way to do this
    git clone https://www.github.com/eugenenoble2005/swengine.git
}
build(){
    cd "$srcdir/swengine/swengine.desktop" 
    dotnet publish --output dist
}
package(){
    cd "$srcdir/swengine/swengine.desktop"
    chmod +x ./dist/swengine.desktop
    chmod +x ./swengine
    #starter script
    install -d -m 755 "$pkgdir/usr/bin" && cp swengine "$pkgdir/usr/bin"
    #binaries
    install -d -m 755 "$pkgdir/usr/lib/swengine" && cp -r dist/* "$pkgdir/usr/lib/swengine"
    #desktop entry
   install -d -m 755 "$pkgdir/usr/share/applications" && cp swengine.desktop "$pkgdir/usr/share/applications"
}