diff options
author | Sumner Evans | 2018-12-22 22:51:43 -0700 |
---|---|---|
committer | Sumner Evans | 2018-12-22 22:51:43 -0700 |
commit | 4828d440d8f89bceb5302d9c7f3b52c595f54ea3 (patch) | |
tree | 2ed67382e574a4ce82b744a9076b32eeb2454635 | |
download | aur-4828d440d8f89bceb5302d9c7f3b52c595f54ea3.tar.gz |
0.9.1
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | .gitignore | 19 | ||||
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | PKGBUILD | 30 | ||||
-rwxr-xr-x | update.sh | 64 |
5 files changed, 132 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..825c2e2d8915 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = rst2beamer3k + pkgdesc = msmtp wrapper allowing for offline use + pkgver = 0.9.1 + pkgrel = 1 + url = https://github.com/myint/rst2beamer + arch = any + license = GPL + makedepends = python-setuptools + depends = python + provides = rst2beamer + conflicts = rst2beamer + source = https://files.pythonhosted.org/packages/source/r/rst2beamer3k/rst2beamer3k-0.9.1.tar.gz + sha256sums = 63d9859b20783984034795932c9b14981bea7159add6503cba378c85d9260951 + +pkgname = rst2beamer3k + depends = python + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..92d3543c2fed --- /dev/null +++ b/.gitignore @@ -0,0 +1,19 @@ + +# Created by https://www.gitignore.io/api/archlinuxpackages + +### ArchLinuxPackages ### +*.tar +*.tar.* +*.jar +*.exe +*.msi +*.zip +*.tgz +*.log +*.log.* +*.sig + +pkg/ +src/ + +# End of https://www.gitignore.io/api/archlinuxpackages diff --git a/Makefile b/Makefile new file mode 100644 index 000000000000..cd3176fb3e1c --- /dev/null +++ b/Makefile @@ -0,0 +1,2 @@ +all: + makepkg --printsrcinfo > .SRCINFO diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..d6198443112f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Sumner Evans <sumner.evans98 at gmail dot com> + +pkgbase=('rst2beamer3k') +pkgname=('rst2beamer3k') +_module='rst2beamer3k' +pkgver='0.9.1' +pkgrel=1 +pkgdesc='msmtp wrapper allowing for offline use' +url='https://github.com/myint/rst2beamer' +depends=( + 'python' +) +makedepends=('python-setuptools') +license=('GPL') +arch=('any') +source=('https://files.pythonhosted.org/packages/source/r/rst2beamer3k/rst2beamer3k-0.9.1.tar.gz') +sha256sums=('63d9859b20783984034795932c9b14981bea7159add6503cba378c85d9260951') +provides=("rst2beamer") +conflicts=("rst2beamer") + +build() { + cd "${srcdir}/${_module}-${pkgver}" + python setup.py build +} + +package() { + depends+=() + cd "${srcdir}/${_module}-${pkgver}" + python setup.py install --root="${pkgdir}" --optimize=1 --skip-build +} diff --git a/update.sh b/update.sh new file mode 100755 index 000000000000..7c157ee0d4f7 --- /dev/null +++ b/update.sh @@ -0,0 +1,64 @@ +#! /bin/sh + +AUR_NAME=rst2beamer3k +PROJ_NAME=rst2beamer3k +DESCRIPTION="msmtp wrapper allowing for offline use" +URL=https://github.com/myint/rst2beamer +DEPENDS=() +LICENSE='GPL' +ADDITIONAL=$'provides=("rst2beamer")\nconflicts=("rst2beamer")' + +if [[ $# == 0 ]]; then + echo 'Usage: ./update.sh VERSION_NUMBER' + exit 1 +fi + +src=https://files.pythonhosted.org/packages/source/${PROJ_NAME:0:1}/${PROJ_NAME}/${PROJ_NAME}-$1.tar.gz + +# Get the sha256sum sum of the package. +mkdir -p dist +pushd dist +wget $src +sha=$(sha256sum "${PROJ_NAME}-$1.tar.gz" | cut -d ' ' -f 1) +popd + +echo "# Maintainer: Sumner Evans <sumner.evans98 at gmail dot com> + +pkgbase=('${AUR_NAME}') +pkgname=('${AUR_NAME}') +_module='${PROJ_NAME}' +pkgver='$1' +pkgrel=1 +pkgdesc='${DESCRIPTION}' +url='${URL}' +depends=( + 'python'" > PKGBUILD + +# Include the dependencies. +for d in ${DEPENDS[*]}; do + echo " '$d'" >> PKGBUILD +done + +echo ") +makedepends=('python-setuptools') +license=('${LICENSE}') +arch=('any') +source=('${src}') +sha256sums=('${sha}') +${ADDITIONAL} + +build() { + cd \"\${srcdir}/\${_module}-\${pkgver}\" + python setup.py build +} + +package() { + depends+=() + cd \"\${srcdir}/\${_module}-\${pkgver}\" + python setup.py install --root=\"\${pkgdir}\" --optimize=1 --skip-build +}" >> PKGBUILD + +make + +# Test +makepkg -f |