summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b5728482aafdf8b1f1cd449f091e4a065c94db34 (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
33
34
35
36
# Maintainer: Fabio J Matos Nieves <fabio.matos999@gmail.com>
pkgname=waytrogen
pkgver=0.5.3
pkgdesc='A lightning fast gui wallpaper setter written in Rust.'
depends=('gtk4>=4.16.0' 'gettext' 'sqlite' 'glib2' 'gobject-introspection' 'graphene' 'harfbuzz' 'fribidi' 'fontconfig' 'libepoxy' 'libxi' 'libx11' 'libcloudproviders' 'tinysparql' 'libpng' 'libtiff' 'libjpeg-turbo' 'libxkbcommon' 'wayland' 'libxext' 'libxcursor' 'libxdamage' 'libxfixes' 'libxrandr' 'libxinerama' 'libthai' 'libthai' 'zlib' 'freetype2' 'libxrender' 'libxcb' 'pixman' 'util-linux-libs' 'libffi' 'pcre' 'graphite' 'expat' 'json-glib' 'libxml2' 'zstd' 'xz' 'lzo' 'libdatrie' 'bzip2' 'brotli' 'libxau' 'libxdmcp' 'icu')
url="https://github.com/nikolaizombie1/waytrogen"
source=("$pkgname-$pkgver.tar.gz::https://github.com/nikolaizombie1/waytrogen/archive/refs/tags/"$pkgver".tar.gz")
pkgrel=1
makedepends=('rust' 'cargo' 'gcc' )
optdepends=('hyprpaper: hyprland wallpaper setter'
	    'swybg: sway wallpaper setter'
	    'mpvpaper: animated wallpapers using mpv'
	    'swww: wallpaper setter with transitions')
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
sha256sums=('SKIP')
license=('GPL-3.0-or-later')

prepare() {
  cd "$pkgname-$pkgver"
  cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}

build() {
  export RUSTUP_TOOLCHAIN=stable
  export CARGO_TARGET_DIR=target
  cd "$pkgname-$pkgver"
  cargo build --frozen --release --all-features
}

package_waytrogen() {
  cd "$pkgname-$pkgver"
  install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname"
  install -Dm0644 -t "$pkgdir/usr/share/locale/en/LC_MESSAGES/" locales/en/LC_MESSAGES/waytrogen.mo
  install -Dm0644 -t "$pkgdir/usr/share/locale/es/LC_MESSAGES/" locales/es/LC_MESSAGES/waytrogen.mo
  install -Dm0644 -t "$pkgdir/usr/share/glib-2.0/schemas/" org.Waytrogen.Waytrogen.gschema.xml
}