From e8488fc9d70106a996dcc62048629e3d35801be6 Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Mon, 26 Sep 2016 17:27:41 -0300 Subject: uzem-git: add new package to [pcr] --- pcr/uzem-git/PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 pcr/uzem-git/PKGBUILD (limited to 'pcr') diff --git a/pcr/uzem-git/PKGBUILD b/pcr/uzem-git/PKGBUILD new file mode 100644 index 000000000..14d124b67 --- /dev/null +++ b/pcr/uzem-git/PKGBUILD @@ -0,0 +1,50 @@ +# Maintainer: André Silva +# Maintainer: Márcio Silva + +_pkgname=uzebox +pkgname=uzem-git +pkgver=r335.e5faef9 +_gitver=e5faef9a287cc98ac9fae2ce99a0117c37be460a +pkgrel=1 +pkgdesc="A ${_pkgname^} 8-bit game console emulator" +url="http://belogic.com/$_pkgname" +arch=('i686' 'x86_64' 'armv7h') +license=('GPL3') +depends=('sdl2') +makedepends=('git') +provides=("${pkgname%-git}") +conflicts=("${pkgname%-git}") +source=(${pkgname%-git}-${pkgver}::"git+https://github.com/${_pkgname^}/$_pkgname.git#commit=$_gitver") +sha256sums=('SKIP') + +pkgver() { + cd $srcdir/${pkgname%-git}-$pkgver + + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd $srcdir/${pkgname%-git}-$pkgver/tools/${pkgname%-git} + + # Fix _FORTIFY_SOURCE configure failures and force C++98 standard + CPPFLAGS+=" -O2 -std=gnu++98" + + # Hardening + LDFLAGS+=" -Wl,-z,now" + + # GCC 6 + CXXFLAGS+=" -fno-delete-null-pointer-checks -fno-schedule-insns2" + + make +} + +package() { + cd $srcdir/${pkgname%-git}-$pkgver + + install -d $pkgdir/usr/bin + install -Dm755 $srcdir/${pkgname%-git}-$pkgver/tools/${pkgname%-git}/${pkgname%-git} $pkgdir/usr/bin + install -Dm755 $srcdir/${pkgname%-git}-$pkgver/tools/${pkgname%-git}/${pkgname%-git}dbg $pkgdir/usr/bin + + # License + install -Dm644 gpl-3.0.txt $pkgdir/usr/share/licenses/${pkgname%-git}/LICENSE +} -- cgit v1.2.3