diff options
author | Yasuaki Uechi | 2020-12-30 20:36:17 +0900 |
---|---|---|
committer | Yasuaki Uechi | 2020-12-30 20:36:17 +0900 |
commit | fc5eb75507393bfb3fb2d1f8d12763b77beae3ba (patch) | |
tree | bd04a0119e6d3b78d38641fff8900fb6c4adc3fd | |
parent | eeb75305899e8c2e701399cf438b1bc57e368e88 (diff) | |
download | aur-fc5eb75507393bfb3fb2d1f8d12763b77beae3ba.tar.gz |
fix: use tar.gz
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | PKGBUILD | 16 |
3 files changed, 12 insertions, 9 deletions
@@ -11,9 +11,9 @@ pkgbase = cfddns depends = python-cloudflare depends = python-click backup = etc/cfddns/cfddns.yml - source = .source::https://github.com/uetchy/cfddns/archives/v1.0.0.tar.gz + source = archive.tar.gz::https://github.com/uetchy/cfddns/archive/v1.0.0.tar.gz source = cfddns.service - sha256sums = SKIP + sha256sums = 86dabd00586ccac237c5b2fa135216d64f0989b2ad851ada3ada1d2479525539 sha256sums = 1198d4d36c57c333acc7aa0a99339a66590145d098dd276b697ce639215bd5ca pkgname = cfddns diff --git a/.gitignore b/.gitignore index 2c4b5c35dac8..9d1294244418 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,5 @@ # Sources /src -/.source /*.tar.gz # Built package @@ -10,22 +10,26 @@ license=('MIT') depends=('python' 'python-cloudflare' 'python-click') makedepends=('git' 'python-dephell') backup=('etc/cfddns/cfddns.yml') -source=(.source::"https://github.com/uetchy/${pkgname}/archives/v${pkgver}.tar.gz" - "${pkgname}.service") -sha256sums=('SKIP' '1198d4d36c57c333acc7aa0a99339a66590145d098dd276b697ce639215bd5ca') +source=("archive.tar.gz::${url}/archive/v${pkgver}.tar.gz" + "${pkgname}.service") +sha256sums=( + '86dabd00586ccac237c5b2fa135216d64f0989b2ad851ada3ada1d2479525539' + '1198d4d36c57c333acc7aa0a99339a66590145d098dd276b697ce639215bd5ca' +) +_archive=${pkgname}-${pkgver} prepare() { - cd "${srcdir}/.source" + cd "${srcdir}/${_archive}" dephell deps convert --level DEBUG --from pyproject.toml --to setup.py } build() { - cd "${srcdir}/.source" + cd "${srcdir}/${_archive}" /usr/bin/python setup.py build } package() { - cd "${srcdir}"/.source + cd "${srcdir}/${_archive}" /usr/bin/python setup.py install --root="${pkgdir}" --optimize=1 --skip-build install -D -m600 "etc/cfddns.yml" \ |