Created
December 13, 2021 07:47
-
-
Save BrainBlasted/7dec6c32b8bfa14afa32fbbb0a0c791a to your computer and use it in GitHub Desktop.
deviced PKGBUILD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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