diff options
author | n3oney | 2022-04-15 21:08:55 +0200 |
---|---|---|
committer | n3oney | 2022-04-15 21:08:55 +0200 |
commit | d4275b79ead858877ded7d81c23efe65c1163a42 (patch) | |
tree | 8209e135e645c668a37741b1f5b3eeb477810db7 | |
download | aur-d4275b79ead858877ded7d81c23efe65c1163a42.tar.gz |
chore: initial commit
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 40 | ||||
-rw-r--r-- | discord-update-skip.install | 6 |
4 files changed, 66 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..d2c8606f0596 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = discord-update-skip-git + pkgdesc = A simple script to fix Discord wanting to update while the update isn't in the repos. + pkgver = r2.b860122 + pkgrel = 1 + url = https://github.com/n3oney/discord-update-skip + install = discord-update-skip.install + arch = any + license = MIT + makedepends = git + depends = jq + depends = discord + depends = bash + source = git+https://github.com/n3oney/discord-update-skip.git#branch=stable + sha256sums = SKIP + +pkgname = discord-update-skip-git diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..7837bf69005c --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +src/ +*.tar.zst +pkg/ +discord-update-skip/ diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..47c0c41ffd8d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: MichaĆ Minarowski <neoney@pm.me> +_pkgname="discord-update-skip" +pkgname="$_pkgname"-git +_discordversion="stable" +pkgver=r2.b860122 +pkgrel=1 +pkgdesc="A simple script to fix Discord wanting to update while the update isn't in the repos." +arch=('any') +url="https://github.com/n3oney/discord-update-skip" +license=('MIT') +depends=('jq' 'discord' 'bash') +makedepends=('git') +install="$_pkgname".install +changelog= +source=('git+https://github.com/n3oney/discord-update-skip.git#branch='${_discordversion} + ) +sha256sums=('SKIP') + +pkgver() { + cd "$srcdir"/"$_pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +: ' +prepare() { + cd "$pkgname-$pkgver" + patch -p1 -i "$srcdir/$pkgname-$pkgver.patch" +} + +build() { + cd "$pkgname-$pkgver" + ./configure --prefix=/usr + make +} +' + +package() { + install -Dm644 "$srcdir"/"$_pkgname"/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + install -Dm755 "$srcdir"/"$_pkgname"/set-config.sh "$pkgdir/usr/bin/$_pkgname" +} diff --git a/discord-update-skip.install b/discord-update-skip.install new file mode 100644 index 000000000000..f47efb7f9aca --- /dev/null +++ b/discord-update-skip.install @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +post_install() { + echo -e "\e[32mUse the 'discord-update-skip' to patch your Discord config file." + echo -e "This command only needs to run once, after which you can remove the package.\e[0m" +} |