diff options
author | Victor Tran | 2017-11-30 14:34:40 +1100 |
---|---|---|
committer | Victor Tran | 2017-11-30 14:34:40 +1100 |
commit | 3d5ccbb8f32055e6e2a501570a587cc038cd2a2e (patch) | |
tree | ac2d2bf6c5c7e5db59f0d4cfb8d04cc2456788fa | |
download | aur-3d5ccbb8f32055e6e2a501570a587cc038cd2a2e.tar.gz |
Initial Commit
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | PKGBUILD | 32 |
2 files changed, 45 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..8f9a13604a47 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = discord-rpc-api + pkgdesc = Libraries for Discord Rich Presence + pkgver = 1.0 + pkgrel = 0 + url = https://github.com/discordapp/discord-rpc + arch = x86_64 + license = MIT + makedepends = git + source = discord-rpc-api-1.0::git+https://github.com/discordapp/discord-rpc.git + md5sums = SKIP + +pkgname = discord-rpc-api + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c36c99b6f8a9 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,32 @@ + +# Maintainer: Victor Tran <vicr12345 at gmail dot com> +pkgname=discord-rpc-api +pkgver=1.0 +pkgrel=0 +pkgdesc="Libraries for Discord Rich Presence" +arch=("x86_64") +url="https://github.com/discordapp/discord-rpc" +license=('MIT') +depends=('') +makedepends=('git') +source=("$pkgname-$pkgver"::'git+https://github.com/discordapp/discord-rpc.git') +md5sums=('SKIP') + +build() { + cd "$pkgname-$pkgver" + mkdir build + cd build + cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_SHARED_LIBS=ON + cmake --build . +} + +package() { + cd $pkgdir + mkdir usr + cd usr + mkdir lib + ln -s ./lib lib64 + cd "$srcdir/$pkgname-$pkgver/build" + make install DESTDIR=$pkgdir + rm $pkgdir/usr/lib64 +} |