summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD32
2 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..d7d64611b35
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = python-itchat-git
+ pkgdesc = A complete and graceful API for Wechat.
+ pkgver = r188.d5ce5db
+ pkgrel = 1
+ url = https://github.com/littlecodersh/ItChat
+ arch = any
+ license = MIT
+ makedepends = git
+ depends = python-requests
+ depends = python-pyqrcode
+ depends = python-pypng
+ provides = python-itchat
+ conflicts = python-itchat
+ source = python-itchat::git+https://github.com/littlecodersh/ItChat.git
+ md5sums = SKIP
+
+pkgname = python-itchat-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..cc784025ce1
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Ke Liu <spcter119@gmail.com>
+
+pkgname=python-itchat-git
+pkgver=r188.d5ce5db
+pkgrel=1
+pkgdesc='A complete and graceful API for Wechat.'
+arch=('any')
+url='https://github.com/littlecodersh/ItChat'
+license=('MIT')
+depends=('python-requests' 'python-pyqrcode' 'python-pypng')
+makedepends=('git')
+provides=("${pkgname%-git}")
+conflicts=("${pkgname%-git}")
+source=("${pkgname%-git}"::"git+${url}.git")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/${pkgname%-git}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "$srcdir/${pkgname%-git}"
+ python setup.py clean --all
+ python setup.py build
+}
+
+package() {
+ cd "$srcdir/${pkgname%-git}"
+ python setup.py install --root "$pkgdir"
+ install -Dm644 "$srcdir/${pkgname%-git}/LICENSE" "$pkgdir/usr/share/licenses/${pkgname%-git}/LICENSE"
+}