summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorcaltlgin2020-11-23 08:30:15 +1300
committercaltlgin2020-11-23 08:30:15 +1300
commit5e7e0258f585f963a117c3634f07b8b1c55851cd (patch)
tree1772f6b3ecf97784acd1c8212dec63d713ef37b1 /PKGBUILD
parent6a76f9f9eae8d91c3b59227ebabbff62f214b542 (diff)
downloadaur-simple-stocks-git.tar.gz
Refactored PKGBUILD
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD18
1 files changed, 9 insertions, 9 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 80ccc78d302..8dad14822f6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,32 +1,32 @@
# Maintainer: Caltlgin Stsodaat <contact@fossdaily.xyz>
-_pkgname='stocks'
-pkgname="simple-${_pkgname}-git"
+_pkgname='simple-stocks'
+pkgname="${_pkgname}-git"
pkgver=1.0.8.r2.g9b4be86
pkgrel=1
pkgdesc='Keep tabs on your favorite stocks'
arch=('x86_64')
url='https://github.com/brendanperry/stocks'
license=('GPL3')
-provides=("${pkgname%-*}")
depends=('granite')
makedepends=('git' 'meson' 'vala')
-source=("git+${url}.git")
+provides=("${_pkgname}")
+conflicts=("${_pkgname}")
+source=("${_pkgname}::git+${url}.git")
sha256sums=('SKIP')
pkgver() {
git -C "${_pkgname}" describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
-
build() {
- arch-meson "${_pkgname}" build
- meson compile -C build
+ arch-meson "${_pkgname}" 'build'
+ meson compile -C 'build'
}
package() {
- DESTDIR="${pkgdir}" meson install -C build
- install -Dm644 -t "${pkgdir}/usr/share/doc/${pkgname%-*}" "${_pkgname}/README.md"
+ DESTDIR="${pkgdir}" meson install -C 'build'
+ install -Dvm644 "${_pkgname}/README.md" -t "${pkgdir}/usr/share/doc/${_pkgname}"
}
# vim: ts=2 sw=2 et: