diff options
-rw-r--r-- | deadbeef-plugin-discord-git/.SRCINFO | 17 | ||||
-rw-r--r-- | deadbeef-plugin-discord-git/.gitignore | 1 | ||||
-rw-r--r-- | deadbeef-plugin-discord-git/PKGBUILD | 45 | ||||
-rw-r--r-- | deadbeef-plugin-discord-git/ddb_discord_presence-makefile.patch | 14 |
4 files changed, 77 insertions, 0 deletions
diff --git a/deadbeef-plugin-discord-git/.SRCINFO b/deadbeef-plugin-discord-git/.SRCINFO new file mode 100644 index 0000000..23486b7 --- /dev/null +++ b/deadbeef-plugin-discord-git/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = deadbeef-plugin-discord-git + pkgdesc = DeaDBeeF Discord rich presence plugin + pkgver = r22.g7d8c637 + pkgrel = 1 + url = https://github.com/kuba160/ddb_discord_presence + arch = i686 + arch = x86_64 + license = BSD + makedepends = git + depends = deadbeef-git + source = ddb_discord_presence::git+https://github.com/kuba160/ddb_discord_presence + source = ddb_discord_presence-makefile.patch + sha256sums = SKIP + sha256sums = 2abb2e87faafa82c2fb6f88c93068379dd70011ad9e28d1600ad98459331bf4a + +pkgname = deadbeef-plugin-discord-git + diff --git a/deadbeef-plugin-discord-git/.gitignore b/deadbeef-plugin-discord-git/.gitignore new file mode 100644 index 0000000..9ef22dd --- /dev/null +++ b/deadbeef-plugin-discord-git/.gitignore @@ -0,0 +1 @@ +ddb_discord_presence 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 <dpirate at metalpunks dot info> +# +# 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 +} diff --git a/deadbeef-plugin-discord-git/ddb_discord_presence-makefile.patch b/deadbeef-plugin-discord-git/ddb_discord_presence-makefile.patch new file mode 100644 index 0000000..473e0e0 --- /dev/null +++ b/deadbeef-plugin-discord-git/ddb_discord_presence-makefile.patch @@ -0,0 +1,14 @@ +diff -r -u -N ddb_discord_presence/Makefile ddb_discord_presence-makefile/Makefile +--- ddb_discord_presence/Makefile 2018-09-30 15:14:26.874053581 +0200 ++++ ddb_discord_presence-makefile/Makefile 2018-09-30 15:15:45.258372163 +0200 +@@ -8,8 +8,8 @@ + CC=gcc + CXX=g++ + STD=gnu99 +-CFLAGS+=-fPIC -I /usr/local/include -I discord-rpc/include -Wall +-CXXFLAGS+=-fPIC -I /usr/local/include -Wall ++CFLAGS+=$(COPT) -fPIC -I /usr/local/include -I discord-rpc/include -Wall ++CXXFLAGS+=$(CXXOPT) -fPIC -I /usr/local/include -Wall + ifeq ($(DEBUG),1) + CFLAGS +=-g -O0 + CXXFLAGS +=-g -O0 |