diff options
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | .gitignore | 19 | ||||
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | PKGBUILD | 26 |
4 files changed, 62 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..5fb87a8588d4 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = statcode + pkgdesc = Like man pages, but for HTTP status codes + pkgver = 1.0.0 + pkgrel = 1 + url = https://github.com/shobrook/statcode + arch = any + license = MIT + makedepends = python-setuptools + depends = python + source = https://files.pythonhosted.org/packages/source/s/statcode/statcode-1.0.0.tar.gz + sha256sums = 973bcf53ef9beedbb6d334dea5536af28b4fd02b5a2ed4b91cf2a256860dabe3 + +pkgname = statcode + 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..a28481eb8c00 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,26 @@ +# Maintainer: Sumner Evans <sumner.evans98 at gmail dot com> + +pkgbase=('statcode') +pkgname=('statcode') +_module='statcode' +pkgver='1.0.0' +pkgrel=1 +pkgdesc="Like man pages, but for HTTP status codes" +url="https://github.com/shobrook/statcode" +depends=('python') +makedepends=('python-setuptools') +license=('MIT') +arch=('any') +source=("https://files.pythonhosted.org/packages/source/s/statcode/statcode-${pkgver}.tar.gz") +sha256sums=('973bcf53ef9beedbb6d334dea5536af28b4fd02b5a2ed4b91cf2a256860dabe3') + +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 +} |