From 9766cf0e156956d25940d1e3189c91d08416c9f1 Mon Sep 17 00:00:00 2001 From: Uttarayan Mondal Date: Wed, 26 May 2021 19:23:15 +0530 Subject: [PATCH] Add PKGBUILD --- LICENSE | 7 +++++++ PKGBUILD | 31 +++++++++++++++++++++++++++++++ ame.sh | 2 +- 3 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 LICENSE create mode 100644 PKGBUILD diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..11ce28c --- /dev/null +++ b/LICENSE @@ -0,0 +1,7 @@ +Copyright 2021 Uttarayan Mondal + +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/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..fc5a0eb --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: uttarayan21 + +pkgname=windows10ame-git +_pkgname=windows10ame +pkgver=git +pkgrel=1 +pkgdesc="Windows 10 amelioration script" + +arch=('x86_64') +url="https://github.com/uttarayan21/windows10ame" +license=('MIT') + +depends=('7z' 'git' 'curl') +provides=("windows10ame=${pkgver}") +conflicts=("windows10ame") +makedepends=('git') +source=("$pkgname::git+${url}.git") +md5sums=('SKIP') + + +pkgver() { + cd "$pkgname" + echo "$(git rev-parse --short HEAD)" +} + +package() { + cd "$pkgname" + install -Dm755 "ame.sh" "$pkgdir/usr/bin/ame" + install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$_pkgname/LICENSE" +} + diff --git a/ame.sh b/ame.sh index 93c1e07..afe8320 100755 --- a/ame.sh +++ b/ame.sh @@ -18,7 +18,7 @@ title_bar() { } title_bar -required="7z curl git find" +required="7z curl git find sed awk" for r in $required;do if ! [ -n "$(which $r 2> /dev/null)" ];then # need the quotes