Commit bf881689 authored by Eric Vidal's avatar Eric Vidal 💬
Browse files

pass under ISC license, add makefile

parent 4e098c8b
Loading
Loading
Loading
Loading

AUTHORS

0 → 100644
+2 −0
Original line number Diff line number Diff line
Main author:
 Eric Vidal <eric@obarun.org>
+14 −4
Original line number Diff line number Diff line
# "THE BEER-WARE LICENSE" (Revision 42):
# <eric@obarun.org> wrote this file.  As long as you retain this notice you
# can do whatever you want with this stuff. If we meet some day, and you think
# this stuff is worth it, you can buy me a beer in return.   Eric Vidal
Copyright (c) 2015-2017 Eric Vidal <eric@obarun.org>
All rights reserved.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

Makefile

0 → 100644
+36 −0
Original line number Diff line number Diff line
# Makefile for obarun-install

VERSION = $$(git describe --tags| sed 's/-.*//g;s/^v//;')
PKGNAME = obarun-install

BINDIR = /usr/bin

FILES = $$(find install/ -type f)
SCRIPTS = 	obarun-install.in \
			install.sh
			
install:
	
	for i in $(SCRIPTS) $(FILES); do \
		sed -i 's,@BINDIR@,$(BINDIR),' $$i; \
	done
	
	install -Dm755 obarun-install.in $(DESTDIR)/$(BINDIR)/obarun-install
	install -Dm755 install.sh $(DESTDIR)/usr/lib/obarun/install.sh
	
	for i in $(FILES); do \
		install -Dm755 $$i $(DESTDIR)/usr/lib/obarun/$$i; \
	done
	
	install -Dm644 install.conf	$(DESTDIR)/etc/obarun/install.conf
	
	install -Dm644 PKGBUILD $(DESTDIR)/var/lib/obarun/obarun-install/update_package/PKGBUILD

	install -dm755 $(DESTDIR)/var/lib/obarun/obarun-install/config
	
	install -Dm644 LICENSE $(DESTDIR)/usr/share/licenses/$(PKGNAME)/LICENSE

version:
	@echo $(VERSION)
	
.PHONY: install version

NEWS

0 → 100644
+7 −0
Original line number Diff line number Diff line
Changelog for obarun-install

In 0.9.1
--------
	
	- Pass under ISC license
	
+15 −22
Original line number Diff line number Diff line
# Copyright (c) 2015-2017 Eric Vidal <eric@obarun.org>
# All rights reserved.
# 
# This file is part of Obarun. It is subject to the license terms in
# the LICENSE file found in the top-level directory of this
# distribution and at https://github.com/Obarun/obarun-install/LICENSE
# This file may not be copied, modified, propagated, or distributed
# except according to the terms contained in the LICENSE file.
#
# Maintainer: Obarun-install scripts <eric@obarun.org>
# DO NOT EDIT this PKGBUILD if you don't know what you do

@@ -7,38 +16,22 @@ pkgrel=1
pkgdesc="Script for automatic installation"
arch=(x86_64)
url="file:///var/lib/obarun/$pkgname/update_package/$pkgname"
license=('BEERWARE')
license=(ISC)
depends=('arch-install-scripts' 'mc' 'git' 'pacman' 'cower' 'obarun-libs' 'obarun-install-themes')
backup=('etc/obarun/install.conf')
#install=
source=("$pkgname::git+file:///var/lib/obarun/$pkgname/update_package/$pkgname")
md5sums=('SKIP')
validpgpkeys=('6DD4217456569BA711566AC7F06E8FDE7B45DAAC') # Eric Vidal

pkgver() {
	cd "${pkgname}"
	if git_version=$(git rev-parse --short HEAD); then
		read "$rev-parse" <<< "$git_version"
		printf '%s' "$git_version"
	fi
	
	git describe --tags | sed -e 's:-:+:g;s:^v::'
}

package() {
	cd "$srcdir/$pkgname"
	
	install -Dm 0755 "obarun-install.in" "$pkgdir/usr/bin/obarun-install"
	install -Dm 0755 "install.sh" "$pkgdir/usr/lib/obarun/install.sh"
	install -dm 0755 "$pkgdir/usr/lib/obarun/install/"
	for file in install/{aur.sh,bootloader.sh,choose.sh,config.sh,define.sh,pac.sh,util.sh};do
		install -Dm 0755 "${file}" "$pkgdir/usr/lib/obarun/install/"
	done
	install -Dm 0644 "install.conf" "$pkgdir/etc/obarun/install.conf"
	install -dm 0755 "$pkgdir/usr/share/licenses/obarun-install/"
	install -Dm 0644 "LICENSE" "$pkgdir/usr/share/licenses/obarun-install/LICENSE"
	install -Dm 0644 "PKGBUILD" "$pkgdir/var/lib/obarun/obarun-install/update_package/PKGBUILD"
	
	install -dm 0755 "$pkgdir/var/lib/obarun/obarun-install/config"
	#cp -aT "config" "$pkgdir/var/lib/obarun/obarun-install/config"	
	cd "${pkgname}"

	make DESTDIR="$pkgdir" install
}
Loading