Date: Thursday, April 6, 2023 @ 13:21:35
Author: felixonmars
Revision: 1438863
archrelease: copy trunk to community-staging-any
Added:
python-imaplib2/repos/community-staging-any/
python-imaplib2/repos/community-staging-any/PKGBUILD
(from rev 1438861, python-imaplib2/trunk/PKGBUILD)
----------+
PKGBUILD | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
Copied: python-imaplib2/repos/community-staging-any/PKGBUILD (from rev 1438861,
python-imaplib2/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-06 13:21:35 UTC (rev 1438863)
@@ -0,0 +1,34 @@
+# Maintainer: Morten Linderud <[email protected]>
+# Contributor: Pi-Yueh Chuang <[email protected]>
+# Contributor: Lex Black <[email protected]>
+# Contributor: Hugo Osvaldo Barrera <[email protected]>
+
+pkgname=python-imaplib2
+pkgver=3.6
+pkgrel=5
+pkgdesc="Threaded Python IMAP4 client"
+arch=('any')
+url="https://github.com/jazzband/imaplib2"
+license=('MIT')
+depends=('python')
+makedepends=('git' 'python-setuptools')
+provides=("${pkgname}")
+conflicts=("${pkgname}-git")
+source=("${pkgname}::git+https://github.com/jazzband/imaplib2.git#tag=v3.6")
+md5sums=('SKIP')
+
+build() {
+ cd "${pkgname}"
+ python setup.py build
+}
+
+package() {
+ cd "${pkgname}"
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+ # install README
+ install -Dm644 "README.md" -t "$pkgdir/usr/share/doc/$pkgname"
+
+ # install license
+ install -Dm644 "LICENCE" -t "$pkgdir/usr/share/licenses/$pkgname"
+}