Unverified Commit 3d08d105 authored by Moritz Poldrack's avatar Moritz Poldrack Committed by GitHub

Add arm to pkgbuild + pkgbuild fixes (#126)

* add ARM support to PKGBUILD * fixed various issues with the PKGBUILD files - added checksum to fixed-release PKGBUILD - added auto-updating version to git-PKGBUILD - moved PKGBUILD to /build-scripts - fixed typo in description - fixed license fields Co-authored-by: 's avatarErik Reider <35975961+ErikReider@users.noreply.github.com>
parent e082c3cb
...@@ -2,23 +2,27 @@ ...@@ -2,23 +2,27 @@
pkgname=swaync pkgname=swaync
pkgver=0.6.1 pkgver=0.6.1
pkgrel=1 pkgrel=1
pkgdesc="A simple notificaion daemon with a GTK panel for checking previous notifications like other DE's" pkgdesc="A simple notificaion daemon with a GTK panel for checking previous notifications like other DEs"
_pkgfoldername=SwayNotificationCenter _pkgfoldername=SwayNotificationCenter
url="https://github.com/ErikReider/$_pkgfoldername" url="https://github.com/ErikReider/$_pkgfoldername"
arch=(x86_64) arch=(
license=(GPL) 'x86_64'
'aarch64' # ARM v8 64-bit
'armv7h' # ARM v7 hardfloat
)
license=(GPL3)
depends=("gtk3>=3.22" "gtk-layer-shell>=0.1" "dbus" "glib2>=2.50" "gobject-introspection>=1.68" "libgee>=0.20" "json-glib>=1.0" "libhandy>=1.4.0") depends=("gtk3>=3.22" "gtk-layer-shell>=0.1" "dbus" "glib2>=2.50" "gobject-introspection>=1.68" "libgee>=0.20" "json-glib>=1.0" "libhandy>=1.4.0")
conflicts=("swaync" "swaync-client") conflicts=("swaync" "swaync-client")
provides=("swaync" "swaync-client") provides=("swaync" "swaync-client")
makedepends=(vala meson git scdoc) makedepends=(vala meson git scdoc)
source=("${_pkgfoldername}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz") source=("${_pkgfoldername}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
sha256sums=('SKIP') sha256sums=('d762bb4fc723b6efc9f2fe5f1a1eea851fa73a8c5fcac9311fa437809cdf46d4')
build() { build() {
arch-meson "${_pkgfoldername}-${pkgver}" build -Dscripting=true arch-meson "${_pkgfoldername}-${pkgver}" build -Dscripting=true
ninja -C build ninja -C build
} }
package() { package() {
DESTDIR="$pkgdir" meson install -C build DESTDIR="$pkgdir" meson install -C build
} }
# Maintainer: Erik Reider <erik.reider@protonmail.com> # Maintainer: Erik Reider <erik.reider@protonmail.com>
pkgname=swaync-git pkgname=swaync-git
_ver="0.6.1" _pkgname=swaync
pkgver="$_ver.r304.f0369e6" pkgver="0.6.1.r304.f0369e6"
pkgrel=1 pkgrel=1
pkgdesc="A simple notificaion daemon with a GTK panel for checking previous notifications like other DE's" pkgdesc="A simple notificaion daemon with a GTK panel for checking previous notifications like other DEs"
_pkgfoldername=SwayNotificationCenter url="https://github.com/ErikReider/SwayNotificationCenter"
url="https://github.com/ErikReider/$_pkgfoldername" arch=(
arch=(x86_64) 'x86_64'
license=(GPL) 'aarch64' # ARM v8 64-bit
'armv7h' # ARM v7 hardfloat
)
license=('GPL3')
depends=("gtk3>=3.22" "gtk-layer-shell>=0.1" "dbus" "glib2>=2.50" "gobject-introspection>=1.68" "libgee>=0.20" "json-glib>=1.0" "libhandy>=1.4.0") depends=("gtk3>=3.22" "gtk-layer-shell>=0.1" "dbus" "glib2>=2.50" "gobject-introspection>=1.68" "libgee>=0.20" "json-glib>=1.0" "libhandy>=1.4.0")
conflicts=("swaync" "swaync-client") conflicts=("swaync" "swaync-client")
provides=("swaync" "swaync-client") provides=("swaync" "swaync-client")
makedepends=(vala meson git scdoc) makedepends=(vala meson git scdoc)
source=("git+$url") source=("$_pkgname::git+$url")
sha256sums=('SKIP') sha256sums=('SKIP')
pkgver() { pkgver() {
cd $_pkgfoldername cd $_pkgname
printf "$_ver.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" (
set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' \
|| printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
} }
prepare() { prepare() {
cd SwayNotificationCenter cd $_pkgname
git checkout main git checkout main
} }
build() { build() {
arch-meson $_pkgfoldername build -Dscripting=true arch-meson $_pkgname build -Dscripting=true
ninja -C build ninja -C build
} }
package() { package() {
DESTDIR="$pkgdir" meson install -C build DESTDIR="$pkgdir" meson install -C build
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment