diff options
author | Sotirios M. Roussis | 2020-12-29 21:51:48 +0200 |
---|---|---|
committer | Sotirios M. Roussis | 2020-12-29 21:51:48 +0200 |
commit | 8c5e42925f21561fff62d8e225c002d24026345d (patch) | |
tree | b763afdf9f5ce22d9e0fade51f8ad29a3b265795 | |
parent | ea0f5da038293f2188da92bb630d5ebc86d552d4 (diff) | |
download | aur-8c5e42925f21561fff62d8e225c002d24026345d.tar.gz |
Refactored and simplified PKGBUILD
-rw-r--r-- | .SRCINFO | 6 | ||||
-rwxr-xr-x[-rw-r--r--] | PKGBUILD | 35 |
2 files changed, 7 insertions, 34 deletions
@@ -1,8 +1,6 @@ -# Generated by mksrcinfo v8 -# Tue May 23 13:27:35 UTC 2017 pkgbase = ship pkgdesc = Simple, handy network addressing multitool with plenty of utilities - pkgver = r192.d060ada + pkgver = 2.6 pkgrel = 1 url = https://github.com/xtonousou/ship.git arch = any @@ -23,7 +21,7 @@ pkgbase = ship provides = ship conflicts = ship replaces = ship - source = git+https://github.com/xtonousou/ship.git + source = https://raw.githubusercontent.com/xtonousou/ship/master/ship md5sums = SKIP sha256sums = SKIP diff --git a/PKGBUILD b/PKGBUILD index eb92b2002e28..10376fdf323b 100644..100755 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,11 +1,11 @@ # Maintainer: Sotirios M. Roussis aka. xtonousou <xtonousou@gmail.com> pkgname=ship -pkgver=r192.d060ada +pkgver=2.6 pkgrel=1 pkgdesc='Simple, handy network addressing multitool with plenty of utilities' -source=('git+https://github.com/xtonousou/ship.git') url='https://github.com/xtonousou/ship.git' +source=('https://raw.githubusercontent.com/xtonousou/ship/master/ship') provides=('ship') conflicts=('ship') replaces=('ship') @@ -13,37 +13,12 @@ md5sums=('SKIP') sha256sums=('SKIP') arch=('any') license=('GPL3') -depends=('bash>=3.2' - 'coreutils' - 'gawk' - 'grep' - 'iproute2' - 'iputils' - 'mtr' - 'sed' - 'traceroute' - 'wget') -makedepends=('binutils' - 'coreutils' - 'git') - -prepare() { - mkdir -p "${srcdir}/${pkgname}" - cd "${srcdir}/${pkgname}" -} - -pkgver() { - cd "${srcdir}/${pkgname}" - echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)" -} +depends=('bash>=3.2' 'coreutils' 'gawk' 'grep' 'iproute2' 'iputils' 'mtr' 'sed' 'traceroute' 'wget') +makedepends=('binutils' 'coreutils' 'git') package() { - cd "${srcdir}/${pkgname}" install -d "${pkgdir}/usr/bin" - install -Dm755 ship.sh "${pkgdir}/usr/bin/ship" - install -Dm644 LICENSE.md "${pkgdir}/usr/share/licenses/$pkgname/LICENSE.md" - install -Dm644 README.md "${pkgdir}/usr/share/doc/$pkgname/README.md" - install -Dm644 CHANGELOG.md "${pkgdir}/usr/share/doc/$pkgname/CHANGELOG.md" + install -Dm755 ship "${pkgdir}/usr/bin/ship" } # vim: ts=2 sw=2 et: |