Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Updated PKGBUILD and patch for klick-git AUR package
klick/
pkg/
src/
klick-git-*.pkg.tar.xz
klick-git-*.src.tar.gz
diff --git a/SConstruct b/SConstruct
index 95f9c43..dc441cd 100644
--- a/SConstruct
+++ b/SConstruct
@@ -11,13 +11,13 @@ env = Environment(
ENV = os.environ,
)
-if os.environ.has_key('CXX'):
+if 'CXX' in os.environ:
env.Replace(CXX = os.environ['CXX'])
-if os.environ.has_key('CXXFLAGS'):
+if 'CXXFLAGS' in os.environ:
env.Append(CXXFLAGS = SCons.Util.CLVar(os.environ['CXXFLAGS']))
-if os.environ.has_key('CPPFLAGS'):
+if 'CPPFLAGS' in os.environ:
env.Append(CXXFLAGS = SCons.Util.CLVar(os.environ['CPPFLAGS']))
-if os.environ.has_key('LDFLAGS'):
+if 'LDFLAGS' in os.environ:
env.Append(LINKFLAGS = SCons.Util.CLVar(os.environ['LDFLAGS']))
# build options
# Maintainer: Daniel Appelt <daniel.appelt@gmail.com>
# Contributor: Christoph Zeiler <rabyte*gmail>
# Contributor: Philipp Überbacher <murks at lavabit dot com>
# Contributor: Christopher Arndt <aur -at- chrisarndt -dot- de>
_pkgbasename=klick
pkgname=${_pkgbasename}-git
pkgver=r174.c050710
pkgrel=3
pkgdesc="An advanced command-line based metronome for JACK"
arch=('i686' 'x86_64')
url="http://das.nasophon.de/klick/"
license=('GPL')
depends=('jack' 'liblo' 'rubberband')
makedepends=('boost' 'git' 'scons')
provides=("${_pkgbasename}")
conflicts=("${_pkgbasename}")
source=("${_pkgbasename}::git://github.com/dsacre/klick.git"
'klick-sconstruct-py3.patch')
sha256sums=('SKIP'
'29d59dfb3cae6b8e0e77362391280ef32a18b3f7e33413921917ce465c5543e9')
pkgver() {
cd "${srcdir}/${_pkgbasename}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "${srcdir}/${_pkgbasename}"
patch -p1 -N -i "${srcdir}"/klick-sconstruct-py3.patch
}
build() {
cd "${srcdir}/${_pkgbasename}"
scons PREFIX="/usr"
}
package() {
cd "${srcdir}/${_pkgbasename}"
scons DESTDIR="${pkgdir}" install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.