diff options
author | Cullen | 2020-09-13 10:28:25 -0400 |
---|---|---|
committer | Cullen | 2020-09-13 10:28:25 -0400 |
commit | 4103ee4cca53c0d68d4f441b4ae071bad64230d1 (patch) | |
tree | 19a154e074ce7e3ba6d370a561e85ed6af93252e | |
download | aur-4103ee4cca53c0d68d4f441b4ae071bad64230d1.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | PKGBUILD | 35 |
2 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..adf8fc753b37 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = cobib-git + pkgdesc = Console Bibliography + pkgver = r257.9440104 + pkgrel = 1 + url = https://gitlab.com/mrossinek/cobib + arch = any + license = MIT + makedepends = git + depends = python + depends = python-bibtexparser + depends = python-beautifulsoup4 + depends = python-ruamel-yaml + depends = python-pylatexenc + depends = python-requests + provides = cobib + conflicts = cobib + source = cobib::git+https://gitlab.com/mrossinek/cobib.git + sha256sums = SKIP + +pkgname = cobib-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..7ca3c784c7f9 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: Cullen Ross <cullenrss@gmail.com> + +_pkgname='cobib' +pkgname="${_pkgname}-git" +pkgver=r257.9440104 +pkgrel=1 +arch=('any') +depends=('python' 'python-bibtexparser' 'python-beautifulsoup4' 'python-ruamel-yaml' 'python-pylatexenc' 'python-requests') +license=('MIT') +makedepends=('git') +provides=('cobib') +conflicts=('cobib') +pkgdesc="Console Bibliography" +url="https://gitlab.com/mrossinek/${_pkgname}" +source=("${_pkgname}::git+${url}.git") +sha256sums=('SKIP') + +pkgver() { + cd "${_pkgname}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd $srcdir/${_pkgname} + curl http://www.apache.org/licenses/LICENSE-2.0 > LICENSE + python3 setup.py build +} + +package() { + cd $srcdir/${_pkgname} + make install_extras + python3 setup.py install --root="$pkgdir/" --optimize=1 --skip-build + install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + |