summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorChris Cromer2016-05-09 22:23:00 -0300
committerChris Cromer2016-05-09 22:23:00 -0300
commit7fb21ffec2173b453cf4410caf7203be840fa42f (patch)
tree8e102055db1a079400465da67965f90d7e268e00 /PKGBUILD
downloadaur-7fb21ffec2173b453cf4410caf7203be840fa42f.tar.gz
initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..94e27d28529
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Chris Cromer <chris@cromer.cl>
+
+pkgname=ygopro-bin
+pkgver=1.033.7
+pkgrel=1
+_pkgrel=2
+pkgdesc="YGOPRO is a free online dueling system made for playing Yu-Gi-Oh! duels."
+arch=('i686' 'x86_64')
+url='https://github.com/cromerc/ygopro'
+license=('GPL2')
+depends=('openal' 'openssl' 'freetype2' 'libevent' 'lua52' 'libcurl-compat' 'libcurl-gnutls')
+backup=(opt/ygopro/system.conf)
+source=("https://github.com/cromerc/ygopro/archive/${pkgver}-${_pkgrel}.tar.gz")
+sha256sums=('31926636827ececbbbbedb3589fe18a847fedad2845fa08ae2083871200923ec')
+options=('!strip' 'emptydirs')
+
+package() {
+ cd "${srcdir}/ygopro-${pkgver}-${_pkgrel}"
+ mkdir -pv "$pkgdir/usr/share/pixmaps"
+ mkdir -pv "$pkgdir/usr/share/applications"
+ mv -v "YGOPro.png" "$pkgdir/usr/share/pixmaps/YGOPro.png"
+ mv -v "YGOPro.desktop" "$pkgdir/usr/share/applications/YGOPro.desktop"
+ mkdir -pv "$pkgdir/opt/ygopro"
+ cp -dRv * "$pkgdir/opt/ygopro"
+ cd "$pkgdir/opt/ygopro"
+ find "$pkgdir/opt/ygopro" -type d -exec chmod 777 {} \;
+ find "$pkgdir/opt/ygopro" -type f -exec chmod 777 {} \;
+ mkdir -pv "$pkgdir/usr/lib"
+ cd "$pkgdir/usr/lib"
+ ln -s liblua5.2.so liblua5.2.so.0
+}
+
+post_remove() {
+ rm -R /opt/ygopro
+}