summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorspecter1192019-04-13 15:16:42 +0800
committerspecter1192019-04-13 15:16:42 +0800
commit62f4fd96a7a3a8ed8a3158391b9bfa895986143a (patch)
tree90ebd7cc2884141c13c0ac8d24e5a986e6a0a04f /PKGBUILD
downloadaur-62f4fd96a7a3a8ed8a3158391b9bfa895986143a.tar.gz
init commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ed11193daef
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer: Ke Liu <spcter119@gmail.com>
+
+pkgname=python-efb-wechat-slave-git
+pkgver=r97.530dd69
+pkgrel=1
+pkgdesc='EFB WeChat Slave, a channel for EH Forwarder Bot.'
+arch=('any')
+url='https://github.com/blueset/efb-wechat-slave'
+license=('AGPL-3')
+groups=('efb')
+depends=('python-ehforwarderbot' 'python-telegram-bot' 'python-magic-ahupp' 'python-pillow' 'libwebp' 'python-pyqrcode' 'python-xmltodict' 'python-yaml')
+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.md" "$pkgdir/usr/share/licenses/${pkgname%-git}/LICENSE.md"
+}