Make use of pkgver() in PKGBUILD

This commit is contained in:
Eric Torres 2022-03-22 09:09:23 -07:00
parent b8f053b976
commit a3db240cc5
2 changed files with 14 additions and 0 deletions

View File

@ -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

View File

@ -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