summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorgrimi2016-04-28 07:10:16 +0200
committergrimi2016-04-28 07:10:16 +0200
commitc0c5fd4a5d85d3da38529a40ad0bc42c1964da11 (patch)
tree58a0ecd8a7d43244fd7f6ed7fd397340b9b96ed4
parentd66adf5d2ffb4a3baa9ff24bba04ab061c628ae4 (diff)
downloadaur-c0c5fd4a5d85d3da38529a40ad0bc42c1964da11.tar.gz
Update: to use hooks
-rw-r--r--.SRCINFO11
-rw-r--r--PKGBUILD15
-rw-r--r--antimicro.install12
3 files changed, 12 insertions, 26 deletions
diff --git a/.SRCINFO b/.SRCINFO
index b8df0ecbe79a..a350a85db09e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,11 +1,10 @@
# Generated by mksrcinfo v8
-# Sun Apr 3 07:14:59 UTC 2016
+# Thu Apr 28 05:10:15 UTC 2016
pkgbase = antimicro
pkgdesc = Graphical program used to map keyboard keys and mouse controls to gamepad buttons
pkgver = 2.21
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/Ryochan7/antimicro
- install = antimicro.install
arch = i686
arch = x86_64
license = GPL3
@@ -17,8 +16,10 @@ pkgbase = antimicro
depends = libxtst
depends = qt5-base
depends = sdl2
- source = http://pkgs.fedoraproject.org/lookaside/pkgs/antimicro/antimicro-2.21.tar.gz/2064888967031e847c255efef941b45e/antimicro-2.21.tar.gz
- md5sums = 2064888967031e847c255efef941b45e
+ depends = shared-mime-info
+ depends = desktop-file-utils
+ source = http://ppa.launchpad.net/ryochan7/antimicro/ubuntu/pool/main/a/antimicro/antimicro_2.21.orig.tar.gz
+ md5sums = 5c78c37a8f854e24f6f9521569f8a1c9
pkgname = antimicro
diff --git a/PKGBUILD b/PKGBUILD
index 524893bd6092..035f56e12e6e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,21 +3,19 @@
pkgname=antimicro
pkgver=2.21
-pkgrel=1
+pkgrel=2
pkgdesc="Graphical program used to map keyboard keys and mouse controls to gamepad buttons"
arch=('i686' 'x86_64')
url="https://github.com/Ryochan7/antimicro"
license=('GPL3')
-depends=('libxkbcommon-x11' 'libxtst' 'qt5-base' 'sdl2')
+depends=('libxkbcommon-x11' 'libxtst' 'qt5-base' 'sdl2' 'shared-mime-info' 'desktop-file-utils')
makedepends=('cmake' 'gettext' 'itstool' 'qt5-tools')
-install="${pkgname}.install"
#source=("${pkgname}-${pkgver}.tar.gz::ttps://github.com/Ryochan7/${pkgname}/archive/${pkgver}.tar.gz")
-source=("http://pkgs.fedoraproject.org/lookaside/pkgs/${pkgname}/${pkgname}-${pkgver}.tar.gz/2064888967031e847c255efef941b45e/${pkgname}-${pkgver}.tar.gz")
-md5sums=('2064888967031e847c255efef941b45e')
+source=("http://ppa.launchpad.net/ryochan7/${pkgname}/ubuntu/pool/main/a/${pkgname}/${pkgname}_${pkgver}.orig.tar.gz")
+md5sums=('5c78c37a8f854e24f6f9521569f8a1c9')
build() {
- #cd ${pkgname}-${pkgver}
- cd ${pkgname}-*/
+ cd ${pkgname}-${pkgver}
mkdir -p build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr -DUSE_SDL_2=ON -DWITH_XTEST=ON \
@@ -26,8 +24,7 @@ build() {
}
package() {
- #cd ${pkgname}-${pkgver}/build
- cd ${pkgname}-*/build/
+ cd ${pkgname}-${pkgver}/build
make DESTDIR="${pkgdir}" install
}
diff --git a/antimicro.install b/antimicro.install
deleted file mode 100644
index ad78f0bae313..000000000000
--- a/antimicro.install
+++ /dev/null
@@ -1,12 +0,0 @@
-post_install() {
- update-mime-database usr/share/mime
- update-desktop-database -q
-}
-
-post_upgrade() {
- post_install
-}
-
-post_remove() {
- post_install
-}