[arch-commits] Commit in x264/trunk (PKGBUILD)

Bartłomiej Piotrowski bpiotrowski at archlinux.org
Wed Sep 23 17:06:29 UTC 2015


    Date: Wednesday, September 23, 2015 @ 19:06:29
  Author: bpiotrowski
Revision: 247163

Use $pkgbase in pkgver(), prepare() and build()

Modified:
  x264/trunk/PKGBUILD

----------+
 PKGBUILD |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-09-23 14:33:30 UTC (rev 247162)
+++ PKGBUILD	2015-09-23 17:06:29 UTC (rev 247163)
@@ -19,7 +19,7 @@
 md5sums=('SKIP')
 
 pkgver() {
-  cd $pkgname
+  cd $pkgbase
   local _ver=$(grep '#define X264_BUILD' x264.h | cut -d' ' -f3)
   local _date=$(git log -1 --format="%cd" --date=short | tr -d -)
 
@@ -27,16 +27,16 @@
 }
 
 prepare() {
-  cp -r $pkgname $pkgname-10bit
+  cp -r $pkgbase $pkgbase-10bit
 }
 
 build() {
-  cd $pkgname
+  cd $pkbase
   ./configure --prefix=/usr \
     --enable-shared --enable-pic
   make
 
-  cd ../$pkgname-10bit
+  cd ../$pkgbase-10bit
   ./configure --prefix=/usr \
     --enable-shared --enable-pic \
     --bit-depth=10



More information about the arch-commits mailing list