summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilip Parag2020-08-28 01:49:59 +0200
committerFilip Parag2020-08-28 01:53:47 +0200
commit0088d7255a80f102759983ddc8e11ed475cd7719 (patch)
tree3730c94ec6af9eae21ff59d0aeaedb37c45a343b
parent0522e62096442de307e02acbf1cc712748cf6004 (diff)
downloadaur-0088d7255a80f102759983ddc8e11ed475cd7719.tar.gz
added modifications recommended by caltlgin
-rw-r--r--.SRCINFO7
-rw-r--r--PKGBUILD29
2 files changed, 17 insertions, 19 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 94db92cb131..e64a46d54d1 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,13 @@
pkgbase = wmrc
pkgdesc = WMRC is a shell utility for extending window manager capabilities using modules with dependency and error checking.
pkgver = 1.1
- pkgrel = 5
+ pkgrel = 6
url = https://github.com/filiparag/wmrc
arch = any
license = MIT
- makedepends = git
depends = dash
- source = git+https://github.com/filiparag/wmrc.git
- sha1sums = SKIP
+ source = wmrc-1.1.tar.gz::https://github.com/filiparag/wmrc/archive/1.1.tar.gz
+ sha256sums = ee6bfdac42cc5d7e30e7af593ada869ce71a33a9cb8cc9bcb22040ac044c7bfc
pkgname = wmrc
diff --git a/PKGBUILD b/PKGBUILD
index 7b5a5258a56..f98d288a51e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,27 +2,26 @@
pkgname=wmrc
pkgver=1.1
-pkgrel=5
+pkgrel=6
pkgdesc='WMRC is a shell utility for extending window manager capabilities using modules with dependency and error checking.'
arch=('any')
url='https://github.com/filiparag/wmrc'
license=('MIT')
depends=('dash')
-makedepends=('git')
-source=('git+https://github.com/filiparag/wmrc.git')
-sha1sums=('SKIP')
-
-prepare() {
- cd "${pkgname}"
- git checkout "tags/${pkgver}"
-}
+source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
+sha256sums=('ee6bfdac42cc5d7e30e7af593ada869ce71a33a9cb8cc9bcb22040ac044c7bfc')
package() {
- cd "${pkgname}"
- install -Dm 755 "${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
- install -d -m 755 "${pkgdir}/usr/share/${pkgname}"
- install -Dm 644 "rc.conf" "${pkgdir}/usr/share/${pkgname}/"
- install -Dm 644 "usage.txt" "${pkgdir}/usr/share/${pkgname}/"
- install -Dm 644 "wmrc.man" "${pkgdir}/usr/share/man/man1/${pkgname}.${pkgver}"
+
+ cd "${pkgname}-${pkgver}"
+
+ install -Dm 755 -t "${pkgdir}/usr/bin/" "${pkgname}"
+
+ install -Dm 644 'wmrc.man' "${pkgdir}/usr/share/man/man1/${pkgname}.1"
+ install -Dm 644 -t "${pkgdir}/usr/share/licenses/${pkgname}" 'LICENSE'
+ install -Dm 644 -t "${pkgdir}/usr/share/doc/${pkgname}" 'README.md'
+
+ install -Dm 644 -t "${pkgdir}/usr/share/${pkgname}" 'rc.conf' 'usage.txt'
cp -r --preserve=mode "modules" "${pkgdir}/usr/share/${pkgname}/"
+
} \ No newline at end of file