1 # PKGBUILD by hasufell <jd.o@gmx.de>
2 ###########################################################################################################
3 # KDE-OPTION KDE-OPTION
4 ###########################################################################################################
6 ## Set this to "y" if you want a right-click menu action for abloadtool ('upload in background' and
7 ## 'open in abload'). This is only for KDE and will work for example in Dolphin, Konqueror or Krusader!
8 ## Be careful, it works for multiple image files.
13 ###########################################################################################################
17 pkgdesc="upload tool for the imagehoster abload"
18 arch=('i686' 'x86_64')
19 url="http://www.abload.de/tool.php"
22 makedepends=('libarchive')
24 if [ "$CARCH" = "i686" ]; then
26 _file="${pkgname}-${pkgver}.${_arch}.deb"
27 source=("http://download.abloadtool.de/ubuntu-32/${pkgname}-${pkgver}.${_arch}.deb"
28 'abloadaction.desktop')
29 md5sums=('7c0d8a0cb375578727ead6b3ce7a2629'
30 '370a428be3150051c147cede5d90aecd')
32 elif [ "$CARCH" = "x86_64" ]; then
34 _file="${pkgname}-${pkgver}.${_arch}.deb"
35 source=("http://download.abloadtool.de/ubuntu-64/${pkgname}-${pkgver}.${_arch}.deb"
36 'abloadaction.desktop')
37 md5sums=('fc731447e64a580fc2250f014b631b59'
38 '370a428be3150051c147cede5d90aecd')
46 bsdtar -xf "${_file}" data.tar.gz
47 bsdtar -xf data.tar.gz -C "${pkgdir}"
52 ln -sf ./libabload.so ./libabload.so.0
53 ln -sf ./libabload.so ./libabload.so.0.1
54 ln -sf ./libabload.so ./libabload.so.0.1.0
56 if [ "$_kdemenu" = "y" ]; then
57 install -Dm644 "${srcdir}"/abloadaction.desktop "${pkgdir}"/usr/share/kde4/services/ServiceMenus/abloadaction.desktop