mirror of
https://github.com/archlinux/aur.git
synced 2026-03-14 23:16:48 +01:00
init project
This commit is contained in:
commit
b3c14f45cd
2 changed files with 83 additions and 0 deletions
22
.SRCINFO
Normal file
22
.SRCINFO
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
pkgbase = linux-wallpaperengine-gui-git
|
||||
pkgdesc = A GUI for linux-wallpaperengine, powered by Electron (Git version)
|
||||
pkgver = r1.0000000
|
||||
pkgrel = 1
|
||||
url = https://github.com/AzPepoze/linux-wallpaperengine-gui
|
||||
arch = x86_64
|
||||
license = MIT
|
||||
makedepends = git
|
||||
makedepends = npm
|
||||
makedepends = python
|
||||
depends = linux-wallpaperengine
|
||||
depends = gtk3
|
||||
depends = nss
|
||||
depends = libxss
|
||||
depends = alsa-lib
|
||||
provides = linux-wallpaperengine-gui
|
||||
conflicts = linux-wallpaperengine-gui
|
||||
conflicts = linux-wallpaperengine-gui-bin
|
||||
source = git+https://github.com/AzPepoze/linux-wallpaperengine-gui.git
|
||||
sha256sums = SKIP
|
||||
|
||||
pkgname = linux-wallpaperengine-gui-git
|
||||
61
PKGBUILD
Normal file
61
PKGBUILD
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
# Maintainer: AzPepoze <azpepoze@gmail.com>
|
||||
pkgname=linux-wallpaperengine-gui-git
|
||||
_pkgname=linux-wallpaperengine-gui
|
||||
pkgver=r1.0000000
|
||||
pkgrel=1
|
||||
pkgdesc="A GUI for linux-wallpaperengine, powered by Electron (Git version)"
|
||||
arch=('x86_64')
|
||||
url="https://github.com/AzPepoze/linux-wallpaperengine-gui"
|
||||
license=('MIT')
|
||||
depends=('linux-wallpaperengine' 'gtk3' 'nss' 'libxss' 'alsa-lib')
|
||||
makedepends=('git' 'npm' 'python')
|
||||
provides=("$_pkgname")
|
||||
conflicts=("$_pkgname" "${_pkgname}-bin")
|
||||
source=("git+${url}.git")
|
||||
sha256sums=('SKIP')
|
||||
|
||||
pkgver() {
|
||||
cd "$srcdir/$_pkgname"
|
||||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
||||
}
|
||||
|
||||
prepare() {
|
||||
cd "$srcdir/$_pkgname"
|
||||
mkdir -p "$srcdir/electron-cache"
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$srcdir/$_pkgname"
|
||||
export ELECTRON_CACHE="$srcdir/electron-cache"
|
||||
export ELECTRON_BUILDER_CACHE="$srcdir/electron-cache"
|
||||
|
||||
npm install
|
||||
npm run build
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/$_pkgname"
|
||||
local _build_dir="dist/linux-unpacked"
|
||||
|
||||
install -d "$pkgdir/opt/$_pkgname"
|
||||
cp -r "$_build_dir/"* "$pkgdir/opt/$_pkgname/"
|
||||
|
||||
install -d "$pkgdir/usr/bin"
|
||||
ln -s "/opt/$_pkgname/$_pkgname" "$pkgdir/usr/bin/$_pkgname"
|
||||
|
||||
install -d "$pkgdir/usr/share/applications"
|
||||
cat <<EOF > "$pkgdir/usr/share/applications/$_pkgname.desktop"
|
||||
[Desktop Entry]
|
||||
Name=Linux Wallpaper Engine GUI
|
||||
Comment=Manage wallpapers for linux-wallpaperengine
|
||||
Exec=/usr/bin/$_pkgname
|
||||
Icon=$_pkgname
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=Utility;
|
||||
EOF
|
||||
|
||||
if [ -f "build/icon.png" ]; then
|
||||
install -Dm644 "build/icon.png" "$pkgdir/usr/share/pixmaps/$_pkgname.png"
|
||||
fi
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue