diff options
author | Mark Wagie | 2021-08-30 12:13:02 -0600 |
---|---|---|
committer | Mark Wagie | 2021-08-30 12:13:02 -0600 |
commit | b82616da4776024b753a9904789731934e2c14cf (patch) | |
tree | 855a2722d3400ccdfdf3a9d0677e7df70b4ce4d6 | |
download | aur-b82616da4776024b753a9904789731934e2c14cf.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 26 | ||||
-rw-r--r-- | .gitignore | 7 | ||||
-rw-r--r-- | PKGBUILD | 52 |
3 files changed, 85 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..8d5183ec2935 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,26 @@ +pkgbase = pop-launcher-git + pkgver = r62.777fe78 + pkgrel = 1 + url = https://github.com/pop-os/launcher + arch = x86_64 + license = GPL3 + makedepends = cargo + makedepends = git + depends = fd + depends = gtk3 + depends = libqalculate + source = git+https://github.com/pop-os/launcher.git + sha256sums = SKIP + +pkgname = pop-launcher-git + pkgdesc = Modular IPC-based desktop launcher service + optdepends = pop-launcher-system76-power + provides = pop-launcher + conflicts = pop-launcher + +pkgname = pop-launcher-system76-power-git + pkgdesc = System76 Power scripts for the launcher + depends = pop-launcher + depends = system76-power + provides = pop-launcher-system76-power + conflicts = pop-launcher-system76-power 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..70a6ca523ab2 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,52 @@ +# Maintainer: Mark Wagie <mark dot wagie at tutanota dot com> +pkgname=('pop-launcher-git' 'pop-launcher-system76-power-git') +pkgbase=pop-launcher-git +pkgver=r62.777fe78 +pkgrel=1 +arch=('x86_64') +url="https://github.com/pop-os/launcher" +license=('GPL3') +depends=('fd' 'gtk3' 'libqalculate') +makedepends=('cargo' 'git') +source=('git+https://github.com/pop-os/launcher.git') +sha256sums=('SKIP') + +pkgver() { + cd "$srcdir/launcher" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + cd "$srcdir/launcher" + cargo fetch --target "$CARCH-unknown-linux-gnu" +} + + +build() { + cd "$srcdir/launcher" + export RUSTUP_TOOLCHAIN=stable + make +} + +package_pop-launcher-git() { + pkgdesc="Modular IPC-based desktop launcher service" + optdepends=('pop-launcher-system76-power') + provides=("${pkgname%-git}") + conflicts=("${pkgname%-git}") + + cd "$srcdir/launcher" + make DESTDIR="$pkgdir/" install + + rm -rf "$pkgdir/usr/lib/${pkgbase%-git}/scripts/system76-power" +} + +package_pop-launcher-system76-power-git() { + pkgdesc="System76 Power scripts for the launcher" + depends=('pop-launcher' 'system76-power') + provides=("${pkgname%-git}") + conflicts=("${pkgname%-git}") + + cd "$srcdir/launcher" + install -d "$pkgdir/usr/lib/${pkgbase%-git}/scripts" + cp -r scripts/system76-power "$pkgdir/usr/lib/${pkgbase%-git}/scripts" +} |