summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAndrew Sun2018-07-06 21:13:17 -0400
committerAndrew Sun2018-07-06 21:13:17 -0400
commitfebbcfc2833d7addb14dc9306ddd1f512e40c14f (patch)
tree69db6afc223fae7b52c4d5d333d432d34c48b516 /PKGBUILD
downloadaur-febbcfc2833d7addb14dc9306ddd1f512e40c14f.tar.gz
add anontwi (version 1.1b)
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..3d94200f3fb
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: Andrew Sun <adsun701@gmail.com>
+
+pkgname=anontwi
+pkgver=1.1b
+pkgrel=1
+pkgdesc="A free software python client designed to navigate anonymously on social networks. It supports Identi.ca and Twitter.com."
+arch=('any')
+url="https://anontwi.03c8.net/"
+license=("BSD")
+depends=("python2" "python2-crypto" "python2-httplib2" "python2-pycurl" "gtk2" "pygtk")
+source=("${pkgname}-${pkgver}.tar.gz"::"https://${pkgname}.03c8.net/${pkgname}/${pkgname}_${pkgver}.tar.gz")
+sha256sums=('ab406e981859523a56cfc3b121585a551dfdd3265ba2a830beecfa2f97ccea1f')
+
+package() {
+ cd "$srcdir/AnonTwi"
+
+ mkdir -p "${pkgdir}/usr/bin"
+ mkdir -p "${pkgdir}/usr/share/${pkgname}"
+ mkdir -p "${pkgdir}/usr/share/doc/${pkgname}"
+
+ install -Dm644 -t "${pkgdir}/usr/share/doc/${pkgname}" README.md docs/AUTHOR \
+ docs/INSTALL docs/THANKS
+ install -Dm644 docs/COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
+
+ rm -rf docs
+
+ cp -a . "$pkgdir/usr/share/${pkgname}"
+
+ cat > "${pkgdir}/usr/bin/${pkgname}" << EOF
+#!/bin/sh
+cd /usr/share/${pkgname}
+exec python2 ${pkgname} "\$@"
+EOF
+
+ chmod +755 "${pkgdir}/usr/bin/${pkgname}"
+}