summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorluigoalma2018-07-27 02:10:59 +0100
committerluigoalma2018-07-27 02:10:59 +0100
commit9c6a47f0472c01986983962d6c8f6adbf295505f (patch)
tree9200800636c8567b9cce39c16acb7c2f196d43fa /PKGBUILD
parent8b9d5438bf75020bfba6e06afe6018814eb29bd8 (diff)
downloadaur-9c6a47f0472c01986983962d6c8f6adbf295505f.tar.gz
Maybe keep CFLAGS/CPPFLAGS given by makepkg might be a good idea
Derp
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD9
1 files changed, 5 insertions, 4 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 41ca04a3f67..b8cf60d9331 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,9 +2,9 @@
pkgname=simple2d
pkgver=0.9.0
-pkgrel=1
+pkgrel=2
pkgdesc="Simple, open-source 2D graphics for everyone"
-arch=('i686' 'x86_64')
+arch=($CARCH)
url="https://github.com/simple2d/simple2d"
license=('MIT')
depends=('sdl2' 'sdl2_image' 'sdl2_mixer' 'sdl2_ttf')
@@ -14,11 +14,12 @@ sha256sums=('c03497b47a74dd220be8ff3aeedfa42bce36babd23df582281bf0f0c8b48ef0f')
build() {
cd "$srcdir"/simple2d-${pkgver}
- make
+ #maybe do a patch to load to makefile to load them instead of manually changing this every time if need be
+ make CFLAGS="$CFLAGS $CPPFLAGS -std=c11 -fPIC"
}
package() {
cd "$srcdir"/simple2d-${pkgver}
make install PREFIX="$pkgdir"/usr
- rm -rf "$pkgdir"/usr/bin
+ rm "$pkgdir"/usr/bin/simple2d
}