diff options
author | Killswitch | 2020-08-15 16:19:27 +0200 |
---|---|---|
committer | Killswitch | 2020-08-15 16:19:27 +0200 |
commit | 45f8ed4c15f89d7ae42831d25d2cd5a4951317c3 (patch) | |
tree | 62eec309bc2e950e26fcef5ea2450f3acb6f2388 /PKGBUILD | |
parent | 91afcdf3d4ba0b4c8af31a944e2202b2940d11bd (diff) | |
download | aur-45f8ed4c15f89d7ae42831d25d2cd5a4951317c3.tar.gz |
Moved patches files and manpage into packages to avoid having another git source
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 26 |
1 files changed, 15 insertions, 11 deletions
@@ -1,8 +1,6 @@ # Maintainer: Szentesi Botond pkgname=powercord-git _pkgname=powercord -patches=powercord-patches - pkgver=r1178.41cb7ce pkgrel=1 pkgdesc="A lightweight discord client mod focused on simplicity and performance." @@ -11,17 +9,23 @@ url="https://github.com/powercord-org/$_pkgname" license=('Parkord') depends=('nodejs') makedepends=('git' 'npm' 'jq') -source=("git+https://github.com/powercord-org/powercord#branch=v2" - "git+https://github.com/botiapa/powercord-patches" - ) -md5sums=('SKIP' - 'SKIP' - ) +source=( + "git+https://github.com/powercord-org/powercord#branch=v2" + "index.js.patch" + "main.js.patch" + "powercord.8" + ) +md5sums=( + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + ) options=('!strip') prepare() { - patch -u ${srcdir}/${_pkgname}/injectors/index.js -i ${srcdir}/${patches}/index.js.patch - patch -u ${srcdir}/${_pkgname}/injectors/main.js -i ${srcdir}/${patches}/main.js.patch + patch -u ${srcdir}/${_pkgname}/injectors/index.js -i ${srcdir}/index.js.patch + patch -u ${srcdir}/${_pkgname}/injectors/main.js -i ${srcdir}/main.js.patch } pkgver() { @@ -53,7 +57,7 @@ package() { chown -R root:root "${install_dir}/${_pkgname}/" find "${pkgdir}/usr" -type d -exec chmod 755 {} + - install -g 0 -o 0 -Dm 0644 "${srcdir}/${patches}/powercord.8" -t ${pkgdir}/usr/share/man/man8/ + install -g 0 -o 0 -Dm 0644 "${srcdir}/powercord.8" -t ${pkgdir}/usr/share/man/man8/ gzip ${pkgdir}/usr/share/man/man8/powercord.8 # This is not ideal. It's only required because it seems like discord needs write and execute permissions. |