diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..dc91e2a --- /dev/null +++ b/LICENSE @@ -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. diff --git a/Makefile b/Makefile index 4490ba5..e08553a 100644 --- a/Makefile +++ b/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 diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..befe8ca --- /dev/null +++ b/PKGBUILD @@ -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 +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 +# }