mirror of
https://github.com/arcan1s/queued.git
synced 2025-04-24 23:47:19 +00:00
Added install scripts
This commit is contained in:
parent
c50b0a1bcd
commit
d0672e76ce
6
PKGBUILD
6
PKGBUILD
@ -2,15 +2,15 @@
|
||||
# Maintainer: Evgeniy "arcanis" Alexeev <esalexeev@gmail.com>
|
||||
|
||||
pkgname=queued
|
||||
pkgver=1.0.0
|
||||
pkgver=1.1.0
|
||||
pkgrel=1
|
||||
pkgdesc="Daemon for starting jobs to queue of calculations"
|
||||
arch=('any')
|
||||
url="https://github.com/arcan1s/queued"
|
||||
license=("GPL")
|
||||
makedeps=('git')
|
||||
source=(https://github.com/arcan1s/queued/releases/download/V.${pkgver}/${pkgname}-${pkgver}.tar.xz)
|
||||
md5sums=('d93c8cf20804b07b47645b0c43d45d3d')
|
||||
source=(https://github.com/arcan1s/queued/releases/download/V.${pkgver}/${pkgname}-${pkgver}-src.tar.xz)
|
||||
md5sums=('c7f710d8779e7cd780f7e8043735cae7')
|
||||
backup=('etc/queued.conf')
|
||||
|
||||
package()
|
||||
|
25
create_archive.sh
Executable file
25
create_archive.sh
Executable file
@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
|
||||
ARCHIVE="queued"
|
||||
[ -d ${ARCHIVE} ] && rm -rf ${ARCHIVE}
|
||||
|
||||
mkdir -p ${ARCHIVE}/usr/{bin,lib/systemd/system}
|
||||
mkdir -p ${ARCHIVE}/usr/share/man/{man1,man5}
|
||||
mkdir -p ${ARCHIVE}/etc
|
||||
|
||||
cp sources/queued ${ARCHIVE}/usr/bin/
|
||||
cp sources/queued.service ${ARCHIVE}/usr/lib/systemd/system/
|
||||
cp sources/queued.conf ${ARCHIVE}/etc/
|
||||
#cp sources/*.1 ${ARCHIVE}/usr/share/man/man1/
|
||||
#cp sources/*.5 ${ARCHIVE}/usr/share/man/man5/
|
||||
cp install.sh ${ARCHIVE}/
|
||||
cp {AUTHORS,COPYING} ${ARCHIVE}/
|
||||
|
||||
VERSION=$(grep Version sources/queued | awk '{printf $5;}')
|
||||
tar -cf - ${ARCHIVE} | xz -9 -c - > ${ARCHIVE}-${VERSION}-src.tar.xz
|
||||
rm -r ${ARCHIVE}
|
||||
|
||||
# update PKGBUILD
|
||||
MD5SUMS=$(md5sum ${ARCHIVE}-${VERSION}-src.tar.xz | awk '{print $1}')
|
||||
sed -i "s/md5sums=('[0-9a-f]\{32\}')/md5sums=('${MD5SUMS}')/" PKGBUILD
|
||||
sed -i "s/pkgver=[0-9.]\{5\}/pkgver=${VERSION}/" PKGBUILD
|
5
install.sh
Executable file
5
install.sh
Executable file
@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
cp -r etc /
|
||||
cp -r usr /
|
Binary file not shown.
BIN
queued-1.1.0-src.tar.xz
Normal file
BIN
queued-1.1.0-src.tar.xz
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user