diff options
author | Mark Wagie | 2024-02-20 19:24:20 -0700 |
---|---|---|
committer | Mark Wagie | 2024-02-20 19:24:20 -0700 |
commit | 1b82db29010e6f750a9f460997b96983a52b997f (patch) | |
tree | 36a9ac6e5c00992aa1c682240b2dd9b821ffacc4 | |
download | aur-1b82db29010e6f750a9f460997b96983a52b997f.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | .gitignore | 7 | ||||
-rw-r--r-- | PKGBUILD | 44 |
3 files changed, 69 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..b3f322800581 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = cosmic-screenshot-git + pkgdesc = Utility for capturing screenshots via XDG Desktop Portal + pkgver = r7.98cafde + pkgrel = 1 + url = https://github.com/pop-os/cosmic-screenshot + arch = x86_64 + arch = aarch64 + license = GPL-3.0-or-later + makedepends = cargo + makedepends = git + makedepends = just + depends = xdg-desktop-portal + provides = cosmic-screenshot + conflicts = cosmic-screenshot + source = git+https://github.com/pop-os/cosmic-screenshot.git + sha256sums = SKIP + +pkgname = cosmic-screenshot-git diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..4dab8d6386e3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +# Ignore everything +* + +# But not these files... +!.gitignore +!PKGBUILD +!.SRCINFO diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..54d95d0d051f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: Mark Wagie <mark dot wagie at proton dot me> +pkgname=cosmic-screenshot-git +pkgver=r7.98cafde +pkgrel=1 +pkgdesc="Utility for capturing screenshots via XDG Desktop Portal" +arch=('x86_64' 'aarch64') +url="https://github.com/pop-os/cosmic-screenshot" +license=('GPL-3.0-or-later') +groups=() +depends=( + 'xdg-desktop-portal' +# 'xdg-desktop-portal-cosmic-git' ? +) +makedepends=( + 'cargo' + 'git' + 'just' +) +provides=("${pkgname%-git}") +conflicts=("${pkgname%-git}") +source=('git+https://github.com/pop-os/cosmic-screenshot.git') +sha256sums=('SKIP') + +pkgver() { + cd "${pkgname%-git}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + cd "${pkgname%-git}" + export CARGO_HOME="$srcdir/cargo-home" + export RUSTUP_TOOLCHAIN=stable + just vendor +} + +build() { + cd "${pkgname%-git}" + just build-vendored +} + +package() { + cd "${pkgname%-git}" + just rootdir="$pkgdir" install +} |