[arch-commits] Commit in ponysay/trunk (PKGBUILD)
Kpcyrd
kpcyrd at archlinux.org
Sun May 16 21:54:00 UTC 2021
Date: Sunday, May 16, 2021 @ 21:53:59
Author: kpcyrd
Revision: 935956
upgpkg: ponysay 3.0.3-4 - reproducible build fixes
Modified:
ponysay/trunk/PKGBUILD
----------+
PKGBUILD | 26 +++++++++++++++++---------
1 file changed, 17 insertions(+), 9 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-05-16 21:17:01 UTC (rev 935955)
+++ PKGBUILD 2021-05-16 21:53:59 UTC (rev 935956)
@@ -3,26 +3,34 @@
pkgname=ponysay
pkgver=3.0.3
-pkgrel=3
+pkgrel=4
pkgdesc="cowsay reimplemention for ponies"
-url="http://erkin.github.com/ponysay/"
+url="https://github.com/erkin/ponysay"
arch=('any')
license=('GPL3')
depends=('python' 'bash')
makedepends=('git')
-source=("ponysay-$pkgver.tar.gz::https://github.com/erkin/ponysay/tarball/$pkgver"
+source=(https://github.com/erkin/${pkgname}/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz
fix-do-not-compare-literal.patch)
-sha512sums=('ee4340b3a4902465217fcf0e0a31acf2771697ebfff9ce1897d5e0062782efd36ceb91672a6eb45a9b70aeb7f50f48e2ebd7671dab3cf5af1ec4043f2767edd7'
+sha512sums=('d6ff905404192bdc207952a4a914458d7f25ddcfcea95763ae277a2a3bc7ab33e86a0a229c1b10ff7295b7a89d6e1b61406feefb6bdf9026f4076d0ed70dbe93'
'372e26a1293d05a37821a5edcbfc2ebb41d751ba4226fa503c07e815c1bb32b6c000293c584babd96e48614bf3b9c4321deb8b28587a37a56783a434615ddeb5')
prepare() {
- cd "$srcdir/erkin-ponysay-"*
+ cd "${pkgname}-${pkgver}"
+ patch -Np1 -i ../fix-do-not-compare-literal.patch
+}
- patch -Np1 -i "$srcdir"/fix-do-not-compare-literal.patch
+build() {
+ cd "${pkgname}-${pkgver}"
+ export PYTHONHASHSEED=0
+ python setup.py build --freedom=partial --everything
}
package() {
- cd "$srcdir/erkin-ponysay-"*
-
- python3 setup.py --prefix=/usr --dest-dir="$pkgdir" --freedom=partial --everything --with-pdf=/usr/share/doc/ponysay --without-pdf-compression install
+ cd "${pkgname}-${pkgver}"
+ python setup.py --prefix=/usr --dest-dir="${pkgdir}" --freedom=partial --everything \
+ --with-pdf=/usr/share/doc/ponysay --without-pdf-compression \
+ --without-info-compression \
+ --without-man-compression \
+ install
}
More information about the arch-commits
mailing list