From a3db240cc52c0b6ddc22a005e19619fd88042585 Mon Sep 17 00:00:00 2001 From: Eric Torres Date: Tue, 22 Mar 2022 09:09:23 -0700 Subject: [PATCH] Make use of pkgver() in PKGBUILD --- CHANGELOG.rst | 9 +++++++++ PKGBUILD | 5 +++++ 2 files changed, 14 insertions(+) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 642af2b..b08f24e 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,6 +1,13 @@ Changelog for packaging-scripts =============================== +Version 1.5.3 +------------- + +* Project + + * PKGBUILD: make use of pkgver() + Version 1.5.2 ------------- @@ -21,6 +28,7 @@ Version 1.5 ----------- * Project + * PKGBUILD: build from git repository directly * Rename pacmanconf module to pacman @@ -33,6 +41,7 @@ Version 1.4 ----------- * Project + * Add CHANGELOG * Minor code and comment cleanups diff --git a/PKGBUILD b/PKGBUILD index 65ff225..0f6ef7f 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -16,6 +16,11 @@ backup=(etc/apparmor.d/usr.bin.{addpkg,delpkg} source=("${pkgname}::git+file:///home/etorres/Projects/packaging-scripts") sha256sums=('SKIP') +pkgver() { + cd $srcdir/$pkgname + python setup.py --version +} + build() { cd $srcdir/$pkgname python setup.py build