diff options
author | Photon89 | 2017-04-15 21:34:13 +0200 |
---|---|---|
committer | Photon89 | 2017-04-15 21:34:13 +0200 |
commit | 0c1bd55ce3c8a49c47b5be70f16b11907f2770d8 (patch) | |
tree | 231e493e46c0737aa577d8c4341c65f5343f3beb | |
parent | 7729e75d1885d566956f4d745c6d61bc9bc576f0 (diff) | |
download | aur-0c1bd55ce3c8a49c47b5be70f16b11907f2770d8.tar.gz |
Added mimetype recognizion
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 14 | ||||
-rw-r--r-- | unreel.xml | 6 |
3 files changed, 18 insertions, 6 deletions
@@ -1,7 +1,7 @@ pkgbase = unreel pkgdesc = A GUI to create Reveal presentations pkgver = 1.0.2 - pkgrel = 1 + pkgrel = 2 url = https://github.com/linux-man/unreel arch = i686 arch = x86_64 @@ -13,7 +13,9 @@ pkgbase = unreel depends = libxtst depends = nss source = https://github.com/linux-man/unreel/archive/v1.0.2.tar.gz + source = unreel.xml md5sums = 2a7526dd39834b22c3b6b4cce80b5236 + md5sums = 6aaa81cb3511288c44ffb8e4fe9e2b5f pkgname = unreel @@ -3,18 +3,18 @@ pkgname=unreel pkgver=1.0.2 -pkgrel=1 +pkgrel=2 pkgdesc="A GUI to create Reveal presentations" arch=('i686' 'x86_64') url="https://github.com/linux-man/unreel" license=('GPL3') depends=('gconf' 'libnotify' 'libappindicator-gtk2' 'libxtst' 'nss') makedepends=('npm') -source=("https://github.com/linux-man/unreel/archive/v$pkgver.tar.gz") -md5sums=('2a7526dd39834b22c3b6b4cce80b5236') +source=("https://github.com/linux-man/unreel/archive/v$pkgver.tar.gz" "unreel.xml") +md5sums=('2a7526dd39834b22c3b6b4cce80b5236' '6aaa81cb3511288c44ffb8e4fe9e2b5f') prepare() { - gendesk -f -n --name=Unreel --pkgname="${pkgname}" --pkgdesc="${pkgdesc}" --exec="${pkgname}" --categories="Office" + gendesk -f -n --name=Unreel --pkgname="${pkgname}" --pkgdesc="${pkgdesc}" --exec="${pkgname}" --categories="Office" --mimetypes="application/reel" } build() { @@ -31,7 +31,7 @@ build() { package() { # Place files - install -d "${pkgdir}/usr/lib/${pkgname}" + install -d "${pkgdir}/usr/lib/${pkgname}" if [ $CARCH == 'x86_64' ]; then cp -a "${srcdir}/${pkgname}-${pkgver}/dist/linux-unpacked/"* "${pkgdir}/usr/lib/${pkgname}" elif [ $CARCH == 'i686' ]; then @@ -49,4 +49,8 @@ package() { install -dm755 "${pkgdir}/usr/share/icons/hicolor/512x512/apps" install -Dm644 "${srcdir}/${pkgname}-${pkgver}/icons/icon.png" \ "${pkgdir}/usr/share/icons/hicolor/512x512/apps/${pkgname}.png" + install -Dm644 "${srcdir}/${pkgname}-${pkgver}/icons/icon.png" \ + "${pkgdir}/usr/share/icons/hicolor/512x512/mimetypes/application-reel.png" + install -d "${pkgdir}/usr/share/mime/packages" + install -Dm644 "${srcdir}/${pkgname}.xml" "${pkgdir}/usr/share/mime/packages/${pkgname}.xml" }
\ No newline at end of file diff --git a/unreel.xml b/unreel.xml new file mode 100644 index 000000000000..69cab038ff13 --- /dev/null +++ b/unreel.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="utf-8"?> +<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info"> + <mime-type type="application/reel"> + <glob pattern="*.reel"/> + </mime-type> +</mime-info>
\ No newline at end of file |