Skip to content

Instantly share code, notes, and snippets.

@BrainBlasted
Created December 13, 2021 07:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BrainBlasted/7dec6c32b8bfa14afa32fbbb0a0c791a to your computer and use it in GitHub Desktop.
Save BrainBlasted/7dec6c32b8bfa14afa32fbbb0a0c791a to your computer and use it in GitHub Desktop.
deviced PKGBUILD
pkgname=deviced-git
pkgver=r1401.8bc81d6
pkgrel=1
_gitname=deviced
pkgdesc="Deviced is a daemon, library, and tools for communicating with development devices. (Git version)"
arch=('any')
license=('GPL3')
provides=('deviced')
conflicts=('deviced')
url="https://gitlab.gnome.org/chergert/${_gitname}"
depends=('avahi' 'glib2' 'gnutls' 'readline' 'jsonrpc-glib' 'flatpak' 'libnm')
makedepends=('pkg-config' 'meson' 'git')
source=("git+https://gitlab.gnome.org/chergert/${_gitname}.git")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}"/"${_gitname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "${srcdir}"/"${_gitname}"
arch-meson . _build
ninja -C _build
}
package() {
cd "${srcdir}"/"${_gitname}"
DESTDIR="$pkgdir" ninja -C _build install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment