mirror of
https://github.com/hrfee/jfa-go.git
synced 2024-12-22 09:00:10 +00:00
Added install step to makefile; start PKGBUILD
Also added MIT License
This commit is contained in:
parent
af47cd9f0b
commit
c778837593
21
LICENSE
Normal file
21
LICENSE
Normal file
@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2020 Harvey Tindall
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
3
Makefile
3
Makefile
@ -39,6 +39,9 @@ copy:
|
||||
echo "Copying data"
|
||||
cp -r data build/
|
||||
|
||||
install:
|
||||
cp -r build $(DESTDIR)/jfa-go
|
||||
|
||||
all: configuration sass mail compile copy
|
||||
headless: configuration sass-headless mail-headless copy
|
||||
|
||||
|
61
PKGBUILD
Normal file
61
PKGBUILD
Normal file
@ -0,0 +1,61 @@
|
||||
# This is an example PKGBUILD file. Use this as a start to creating your own,
|
||||
# and remove these comments. For more information, see 'man PKGBUILD'.
|
||||
# NOTE: Please fill out the license field for your package! If it is unknown,
|
||||
# then please put 'unknown'.
|
||||
|
||||
# Maintainer: Harvey Tindall <hrfee@protonmail.ch>
|
||||
pkgname="jfa-go"
|
||||
pkgver=0.1.3
|
||||
pkgrel=1
|
||||
epoch=
|
||||
pkgdesc="A web app for managing users on Jellyfin"
|
||||
arch=("x86_64")
|
||||
url="https://github.com/hrfee/jfa-go"
|
||||
license=('MIT')
|
||||
groups=()
|
||||
depends=()
|
||||
makedepends=('go>=1.14' 'python>=3.6.0-1' 'nodejs' 'npm')
|
||||
checkdepends=()
|
||||
optdepends=()
|
||||
provides=()
|
||||
conflicts=()
|
||||
replaces=()
|
||||
backup=()
|
||||
options=()
|
||||
install=
|
||||
changelog=
|
||||
#source=("$pkgname-$pkgver.tar.gz"
|
||||
# "$pkgname-$pkgver.patch")
|
||||
source=("jfa-go::git+https://github.com/hrfee/jfa-go.git")
|
||||
noextract=()
|
||||
md5sums=(SKIP)
|
||||
validpgpkeys=()
|
||||
|
||||
prepare() {
|
||||
cd jfa-go
|
||||
ls
|
||||
make configuration sass-headless mail-headless
|
||||
}
|
||||
|
||||
build() {
|
||||
cd jfa-go
|
||||
make compile
|
||||
}
|
||||
|
||||
package() {
|
||||
cd jfa-go
|
||||
make copy
|
||||
make install DESTDIR="$pkgdir"/opt
|
||||
cp -r "$pkgdir"/opt/$pkgname /opt/$pkgname
|
||||
ln -s /opt/$pkgname/$pkgname /usr/bin/$pkgname
|
||||
}
|
||||
|
||||
# check() {
|
||||
# cd "$pkgname-$pkgver"
|
||||
# make -k check
|
||||
# }
|
||||
#
|
||||
# package() {
|
||||
# cd "$pkgname-$pkgver"
|
||||
# make DESTDIR="$pkgdir/" install
|
||||
# }
|
Loading…
Reference in New Issue
Block a user