summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.AURINFO7
-rw-r--r--.SRCINFO30
-rw-r--r--DatabaseAnime.desktop14
-rw-r--r--PKGBUILD70
-rw-r--r--databaseanime.install12
5 files changed, 133 insertions, 0 deletions
diff --git a/.AURINFO b/.AURINFO
new file mode 100644
index 00000000000..ddfca01a230
--- /dev/null
+++ b/.AURINFO
@@ -0,0 +1,7 @@
+pkgbase = databaseanime
+pkgname = databaseanime
+pkgdesc = Management of your collection Anime, Manga, AMV, Dorama
+pkgver = 1.4.1
+pkgrel = 1
+url = https://github.com/LibertaSoft/DatabaseAnime
+install = databaseanime.install
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..ed0bed0858b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,30 @@
+pkgbase = databaseanime-git
+ pkgdesc = Management of your collection Anime, Manga, AMV and Dorama
+ pkgver = 374.f821fe6
+ pkgrel = 1
+ url = https://github.com/LibertaSoft/DatabaseAnime
+ install = databaseanime.install
+ arch = i686
+ arch = x86_64
+ license = GPLv3
+ makedepends = git
+ makedepends = make
+ depends = qt5-base>=5.3
+ depends = qt5-translations
+ depends = sqlite>=3.7.9
+ depends = hicolor-icon-theme
+ depends = desktop-file-utils
+ optdepends = giflib: GIF images support
+ optdepends = libjpeg: JPEG images support
+ optdepends = libpng: PNG images support
+ provides = databaseanime
+ conflicts = databaseanime
+ source = databaseanime-git::git+https://github.com/LibertaSoft/DatabaseAnime.git
+ source = DatabaseAnime.desktop
+ source = databaseanime.install
+ md5sums = SKIP
+ md5sums = 55dc0013104bcb53eb012389f30e5411
+ md5sums = 51eef5ac2bb99c96ecea1d705734e04d
+
+pkgname = databaseanime-git
+
diff --git a/DatabaseAnime.desktop b/DatabaseAnime.desktop
new file mode 100644
index 00000000000..e16efc86370
--- /dev/null
+++ b/DatabaseAnime.desktop
@@ -0,0 +1,14 @@
+[Desktop Entry]
+Version=1.4.1
+Type=Application
+Name=Database Anime
+Keywords=anime;database;manga;amv;dorama;
+Keywords[ru]=аниме;манга;амв;дорама;вфефифыу фтшьу;
+Comment=Management of your Anime, Manga, AMV and Dorama.
+Comment[ru]=Систематизация вашей коллекции Аниме, Манги, AMV и Дорамы.
+TryExec=dba
+Exec=dba %u
+Icon=DatabaseAnime
+Categories=Database;Anime;Media;
+Terminal=false
+MimeType=x-scheme-handler/DatabaseAnime;
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f03ad0d08cb
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,70 @@
+# Maintainer: Demetri0 <d3i0@ya.ru>
+pkgname=databaseanime-git
+pkgver=374.f821fe6
+pkgrel=1
+pkgdesc="Management of your collection Anime, Manga, AMV and Dorama"
+arch=('i686' 'x86_64')
+url="https://github.com/LibertaSoft/DatabaseAnime"
+license=('GPLv3')
+makedepends=('git' 'make')
+depends=('qt5-base>=5.3' 'qt5-translations' 'sqlite>=3.7.9' 'hicolor-icon-theme' 'desktop-file-utils')
+ optdepends=('giflib: GIF images support'
+ 'libjpeg: JPEG images support'
+ 'libpng: PNG images support')
+conflicts=('databaseanime')
+provides=('databaseanime')
+options=()
+install=databaseanime.install
+source=("$pkgname"::'git+https://github.com/LibertaSoft/DatabaseAnime.git'
+ 'DatabaseAnime.desktop'
+ 'databaseanime.install')
+md5sums=('SKIP'
+ '55dc0013104bcb53eb012389f30e5411'
+ '51eef5ac2bb99c96ecea1d705734e04d')
+
+pkgver() {
+ cd "$srcdir/$pkgname"
+ echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
+}
+
+build() {
+ cd "$srcdir/$pkgname"
+
+ mkdir build && cd build
+ qmake .. -config release
+ make
+ lrelease ../DatabaseAnime/DatabaseAnime.pro
+}
+
+package() {
+ # [MAKE DIRS]
+ mkdir -p $pkgdir/usr/bin
+ mkdir -p $pkgdir/usr/share/LibertaSoft/DatabaseAnime/l10n/
+ mkdir -p $pkgdir/usr/share/applications/
+ mkdir -p $pkgdir/usr/share/icons/hicolor/64x64/apps
+ mkdir -p $pkgdir/usr/share/icons/hicolor/128x128/apps
+ mkdir -p $pkgdir/usr/share/icons/hicolor/256x256/apps
+ mkdir -p $pkgdir/usr/share/icons/hicolor/512x512/apps
+ mkdir -p images/DBA_Icon.png $pkgdir/usr/share/pixmaps
+
+ # [COPY LOCALIZATIONS]
+ cd "$srcdir/$pkgname/DatabaseAnime"
+ cp DatabaseAnime_ru.qm $pkgdir/usr/share/LibertaSoft/DatabaseAnime/l10n/
+ cp DatabaseAnime_en.qm $pkgdir/usr/share/LibertaSoft/DatabaseAnime/l10n/
+ cd "../../../"
+
+ cp ./DatabaseAnime.desktop $pkgdir/usr/share/applications/DatabaseAnime.desktop
+
+ # [COPY ICONS]
+ cd "$srcdir/$pkgname/DatabaseAnime/images"
+ cp DBA_Icon-64.png $pkgdir/usr/share/icons/hicolor/64x64/apps/DatabaseAnime.png
+ cp DBA_Icon.png $pkgdir/usr/share/icons/hicolor/128x128/apps/DatabaseAnime.png
+ cp DBA_Icon-256.png $pkgdir/usr/share/icons/hicolor/256x256/apps/DatabaseAnime.png
+ cp DBA_Icon-512.png $pkgdir/usr/share/icons/hicolor/512x512/apps/DatabaseAnime.png
+ cp DBA_Icon.png $pkgdir/usr/share/pixmaps/DatabaseAnime.png
+ cd "../../../../"
+
+ cd "$srcdir/$pkgname/build"
+ cp ./DatabaseAnime/DatabaseAnime $pkgdir/usr/bin/dba
+ cd "../../../"
+}
diff --git a/databaseanime.install b/databaseanime.install
new file mode 100644
index 00000000000..2809ee7abd2
--- /dev/null
+++ b/databaseanime.install
@@ -0,0 +1,12 @@
+post_install() {
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ post_install $1
+}
+# vim:set ts=2 sw=2 et: