diff options
author | Stuart Mumford | 2018-10-23 10:43:59 +0100 |
---|---|---|
committer | Stuart Mumford | 2018-10-23 10:43:59 +0100 |
commit | 07dd4057e4ffeb3924b1ee7389b93ccd8ec780e5 (patch) | |
tree | d0eb259b1d85c744e83d42baffd8a614e7af437e | |
download | aur-goes16-background-git.tar.gz |
initial version of goes16-background script
-rwxr-xr-x | .SRCINFO | 16 | ||||
-rwxr-xr-x | PKGBUILD | 24 |
2 files changed, 40 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100755 index 000000000000..cef7e38f72bf --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = goes16-background-git + pkgdesc = Put near-realtime picture of Earth as your desktop background. + pkgver = 0.1 + pkgrel = 1 + url = https://github.com/cameronleger/goes16-background + arch = any + license = MIT + depends = python-setuptools + depends = python-lxml + depends = python-pillow + optdepends = feh: Changing wallpaper with i3 + source = goes16-background::git+https://github.com/cameronleger/goes16-background.git + md5sums = SKIP + +pkgname = goes16-background-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100755 index 000000000000..0e2e6ad80e6f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,24 @@ +# Maintainer: Stuart Mumford +pkgname=goes16-background-git +pkgver=0.1 +pkgrel=1 +pkgdesc="Put near-realtime picture of Earth as your desktop background." +arch=(any) +url="https://github.com/cameronleger/goes16-background" +license=('MIT') +depends=('python-setuptools' 'python-lxml' 'python-pillow') +optdepends=('feh: Changing wallpaper with i3') +source=("goes16-background::git+https://github.com/cameronleger/goes16-background.git") +md5sums=('SKIP') + +package() { + cd "$srcdir/goes16-background" + python setup.py install --root="$pkgdir/" --optimize=1 + install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE + sed -i "s%<INSTALLATION_PATH>%/usr/bin/goes16-background%" systemd/goes16-background.service + mkdir -p ${pkgdir}/usr/lib/systemd/user/ + install -m644 -D systemd/goes16-background.service ${pkgdir}/usr/lib/systemd/user/ + install -m644 -D systemd/goes16-background.timer ${pkgdir}/usr/lib/systemd/user/ +} + +# vim:set ts=2 sw=2 et: |