Skip to content

Instantly share code, notes, and snippets.

@shunonymous
Created June 11, 2016 18:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shunonymous/0192917c62a17252ceda3625d26a4a6c to your computer and use it in GitHub Desktop.
Save shunonymous/0192917c62a17252ceda3625d26a4a6c to your computer and use it in GitHub Desktop.
--- PKGBUILD.org 2016-06-12 02:01:01.205537581 +0900
+++ PKGBUILD 2016-06-12 02:59:59.725373894 +0900
@@ -12,10 +12,16 @@
depends=('bzip2' 'sdl_image' 'sdl_mixer' 'sdl_ttf')
source=("http://onscripter.sourceforge.jp/${pkgname}-${pkgver}.tar.gz"
'avifile.patch')
-
md5sums=('29679673a332e3b3f00bdd9c579b93e2'
'9eec223b2bb76e8e83ef4e67de87b2ae')
+# Extend nsaconv, nsadec, sarconv, and sardec in package.
+EXTRA=(#'nsaconv'
+ #'nsadec'
+ #'sarconv'
+ #'sardec'
+ )
+
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
patch -p1 -i ${srcdir}/avifile.patch
@@ -23,10 +29,21 @@
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
- make -f Makefile.Linux
+
+ # For clang.
+ if [ $CXX = clang++ ]
+ then
+ make -f Makefile.Linux CC=clang++
+ else
+ make -f Makefile.Linux
+ fi
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
install -Dm755 onscripter "${pkgdir}/usr/bin/onscripter"
+ for ext in "${EXTRA[@]}"
+ do
+ install -Dm755 ${ext} "${pkgdir}/usr/bin/${ext}"
+ done
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment