summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorQiaoyong Zhong2015-09-19 13:45:07 +0800
committerQiaoyong Zhong2015-09-19 13:45:07 +0800
commitfcd458ff1eaa2a9a53f5a1cd162e5a91f59994a9 (patch)
treed05e45f511c0095da2d90a512cefd071c3bbb351
downloadaur-fcd458ff1eaa2a9a53f5a1cd162e5a91f59994a9.tar.gz
updated to 0.1.6-1
-rw-r--r--.SRCINFO20
-rw-r--r--2048-qt.install12
-rw-r--r--PKGBUILD44
3 files changed, 76 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..325403581d3
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = 2048-qt
+ pkgdesc = The 2048 number game implemented in Qt
+ pkgver = 0.1.6
+ pkgrel = 1
+ url = https://github.com/xiaoyong/2048-Qt
+ install = 2048-qt.install
+ arch = i686
+ arch = x86_64
+ license = MIT
+ depends = qt5-base
+ depends = qt5-declarative
+ depends = qt5-quickcontrols
+ depends = hicolor-icon-theme
+ depends = desktop-file-utils
+ depends = xdg-utils
+ source = https://github.com/xiaoyong/2048-Qt/archive/v0.1.6.tar.gz
+ md5sums = cca8ebf496c70a2c1a56fbe9e893062b
+
+pkgname = 2048-qt
+
diff --git a/2048-qt.install b/2048-qt.install
new file mode 100644
index 00000000000..d0123be17a1
--- /dev/null
+++ b/2048-qt.install
@@ -0,0 +1,12 @@
+post_install() {
+ update-desktop-database -q
+ xdg-icon-resource forceupdate
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..2759815b786
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer: Qiaoyong Zhong <solary.sh@gmail.com>
+pkgname=2048-qt
+_pkgname=2048-Qt
+pkgver=0.1.6
+pkgrel=1
+pkgdesc="The 2048 number game implemented in Qt"
+arch=('i686' 'x86_64')
+url="https://github.com/xiaoyong/2048-Qt"
+license=('MIT')
+depends=('qt5-base' 'qt5-declarative' 'qt5-quickcontrols' 'hicolor-icon-theme' 'desktop-file-utils' 'xdg-utils')
+install=$pkgname.install
+source=(https://github.com/xiaoyong/$_pkgname/archive/v$pkgver.tar.gz)
+md5sums=('cca8ebf496c70a2c1a56fbe9e893062b')
+
+build() {
+ cd "$srcdir/$_pkgname-$pkgver"
+ qmake $pkgname.pro
+ make
+}
+
+check() {
+ cd "$srcdir/$_pkgname-$pkgver"
+ make -k check
+}
+
+package() {
+ cd "$srcdir/$_pkgname-$pkgver"
+ install -D -m755 $pkgname "$pkgdir/usr/bin/$pkgname"
+
+ # Install icons
+ sizes=(16 32 48 256)
+ for size in ${sizes[@]}; do
+ install -D -m644 res/icons/${size}x${size}/apps/$pkgname.png "$pkgdir/usr/share/icons/hicolor/${size}x${size}/apps/$pkgname.png"
+ done
+ install -D -m644 res/icons/scalable/apps/$pkgname.svg "$pkgdir/usr/share/icons/hicolor/scalable/apps/$pkgname.svg"
+
+ install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -D -m644 res/$pkgname.desktop "$pkgdir/usr/share/applications/$pkgname.desktop"
+ install -D -m644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
+ install -D -m644 Changelog.md "$pkgdir/usr/share/doc/$pkgname/Changelog.md"
+ # Man page
+ install -D -m644 res/man/$pkgname.6 "$pkgdir/usr/share/man/man6/$pkgname.6"
+ gzip "$pkgdir/usr/share/man/man6/$pkgname.6"
+}