build: Improve PKGBUILD.tmpl

Simpler package function and use $MAKEFLAGS.  There is no longer a need
for DESTDIR or POSTFIX in the Sconstruct file anymore, either.

Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
This commit is contained in:
Bryan Schumaker 2012-06-02 13:02:39 -04:00
parent f64bf65b37
commit 7816dea1cf
2 changed files with 3 additions and 8 deletions

View File

@ -17,11 +17,13 @@ md5sums=
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
scons
scons $MAKEFLAGS
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
mkdir -p ${pkgdir}/usr
mv bin/ lib/ ${pkgdir}/usr/
scons DESTDIR="${pkgdir}" install
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

View File

@ -2,13 +2,6 @@
import os, sys
import config
POSTFIX = ""
DESTDIR = ""
for argv in sys.argv:
split = argv.split("=")
if split[0] == "DESTDIR":
DESTDIR = split[1] + "/"
FLAGS = ["-O2"]
if config.DEBUG == True:
FLAGS = ["-Wall", "-Werror", "-g", "-DDEBUG"]