summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorJordan Klassen2015-12-14 19:56:23 -0800
committerJordan Klassen2015-12-14 19:56:23 -0800
commit0d27850a3c00c95269cae8afac15905c22a2aa32 (patch)
tree8216a2930ce94c2029d8fd1c86a75133cef3f86a /PKGBUILD
downloadaur-0d27850a3c00c95269cae8afac15905c22a2aa32.tar.gz
v0.4.0
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..83d8568e8980
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer: Jordan James Klassen (forivall) <forivall@gmail.com>
+pkgname=caprine-bin
+pkgver=0.4.0
+pkgrel=1
+pkgdesc="Unofficial Facebook Messenger app"
+arch=('x86_64')
+url="https://github.com/sindresorhus/caprine"
+repo="git://github.com/sindresorhus/caprine.git"
+license=('MIT')
+options=(!strip)
+makedepends=('xdg-utils' 'desktop-file-utils')
+depends=('gconf' 'gtk2' 'libnotify' 'libxtst' 'nss' 'alsa-lib')
+optdepends=('gvfs')
+conflicts=('caprine')
+
+source=(
+ "Caprine-linux-v${pkgver}.zip::https://github.com/sindresorhus/caprine/releases/download/${pkgver}/Caprine-linux-${pkgver}.zip"
+ "caprine.desktop")
+noextract=("Caprine-linux-v${pkgver}.zip")
+sha256sums=('4c115b6745698310c927ea303d977080ea6ac692231e1988e8f889e7ae854eb4'
+ '12b68650885651f78c6c7c2eb81fe0042474a0e7b1a857213732a449106aeaf8')
+
+package() {
+ mkdir -p "${pkgdir}/usr/share/caprine"
+ bsdtar -C "${pkgdir}/usr/share/caprine" -xf "${srcdir}/Caprine-linux-v${pkgver}.zip"
+ mkdir -p "${pkgdir}/usr/bin"
+ ln -s "/usr/share/caprine/Caprine" "${pkgdir}/usr/bin/caprine"
+ RPM_BUILD_ROOT="$pkgdir" desktop-file-install "${srcdir}/caprine.desktop"
+ install -Dm644 "${pkgdir}/usr/share/caprine/resources/app/media/Icon.png" "${pkgdir}/usr/share/pixmaps/Caprine.png"
+}