From 23ada2a010e551f3a04630730356ee96825a5739 Mon Sep 17 00:00:00 2001 From: Deposite Pirate Date: Sun, 30 Sep 2018 15:27:54 +0200 Subject: Add DeaDBeeF Discord rich presence plugin. new file: deadbeef-plugin-discord-git/.SRCINFO new file: deadbeef-plugin-discord-git/.gitignore new file: deadbeef-plugin-discord-git/PKGBUILD new file: deadbeef-plugin-discord-git/ddb_discord_presence-makefile.patch --- deadbeef-plugin-discord-git/PKGBUILD | 45 ++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 deadbeef-plugin-discord-git/PKGBUILD (limited to 'deadbeef-plugin-discord-git/PKGBUILD') diff --git a/deadbeef-plugin-discord-git/PKGBUILD b/deadbeef-plugin-discord-git/PKGBUILD new file mode 100644 index 0000000..4d77a62 --- /dev/null +++ b/deadbeef-plugin-discord-git/PKGBUILD @@ -0,0 +1,45 @@ +# Maintainer: Deposite Pirate +# +# Upstream: https://git.metalpunks.info/arch-ports + +_pkgname=ddb_discord_presence +pkgname=deadbeef-plugin-discord-git +pkgver=r22.g7d8c637 +pkgrel=1 +pkgdesc="DeaDBeeF Discord rich presence plugin" +arch=('i686' 'x86_64') +url="https://github.com/kuba160/ddb_discord_presence" +license=('BSD') +depends=('deadbeef-git') +makedepends=('git') +source=("${_pkgname}::git+https://github.com/kuba160/${_pkgname}" + "${_pkgname}-makefile.patch") +sha256sums=('SKIP' + '2abb2e87faafa82c2fb6f88c93068379dd70011ad9e28d1600ad98459331bf4a') + +pkgver() { + cd "${_pkgname}" + printf "r%s.g%s" \ + "$(git rev-list --count HEAD)" \ + "$(git rev-parse --short HEAD)" +} + +prepare() { + cd "${_pkgname}" + + # Arch compile FLAGS + patch -p1 -i ../${_pkgname}-makefile.patch + + make submodules_load +} + +build() { + cd "${_pkgname}" + make COPT="${CFLAGS}" CXXOPT="${CXXFLAGS}" +} + +package() { + cd "${_pkgname}" + install -m0755 -d "${pkgdir}/usr/lib/deadbeef" + make PREFIX="${pkgdir}/usr/lib/deadbeef" install +} -- cgit v1.2.3-70-g09d2