summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorStoyan Minaev2019-05-23 17:02:08 +0300
committerStoyan Minaev2019-05-23 17:02:08 +0300
commit7c30790cfbe07c3bbf96e2ffd69ab3006003fd2c (patch)
tree5b12c11ce87c9ac3639a8307a48290c2ff86542b /PKGBUILD
parentce8c30e9c6a3d80e44931dd46921adf4ac808edd (diff)
downloadaur-7c30790cfbe07c3bbf96e2ffd69ab3006003fd2c.tar.gz
First release of pocketbook-pro-sdk-linux package
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD79
1 files changed, 57 insertions, 22 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 75de2735d3e..a1ec2018864 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,25 +1,60 @@
-# Maintainer: Murat Çileli <murat.cileli@gmail.com>
+# Maintainer Stoyan Minaev <stoyan.minaev@gmail.com>
-pkgname="adwaita-creamy"
-pkgver="3.24.8"
-pkgrel="1"
-pkgdesc="Refreshed new Adwaita theme with creamy colors and minor changes."
-arch=("x86_64")
-license=("MIT")
-url="https://github.com/murat-cileli/adwaita-creamy"
-makedepends=()
-provides=("adwaita-creamy")
-source=("$pkgname-$pkgver::https://github.com/murat-cileli/adwaita-creamy/archive/$pkgver.tar.gz")
-sha256sums=("SKIP")
-user_name="$(logname)"
-
-package() {
- # Remove old version from user's home themes
- rm -rf $pkgdir/home/${user_name}/.themes/$pkgname
-
- # Create directory
- mkdir -p $pkgdir/usr/share/themes/$pkgname
+pkgname=pocketbook-pro-sdk-linux
+pkgver=1.1
+_pkgver=1_1a
+pkgrel=1
+pkgdesc="Pocketbook-Pro SDK for Linux"
+url="https://sourceforge.net/projects/pocketbook-free/files/PocketBook_Pro_SDK_Linux_1.1/"
+license=('custom')
+source=("https://datapacket.dl.sourceforge.net/project/pocketbook-free/PocketBook_Pro_SDK_Linux_${pkgver}/sdkrelease_${_pkgver}.tar.gz")
+arch=('x86_64')
+md5sums=('814aca54f7edf4b8c4d9469b455e0866')
+optdepends=(
+ "cmake: build some pocketbook apps from /usr/share/${pkgname}/sources/"
+ "freetype2: use freetype in your apps, also required to build some pocketbook apps"
+ "gtk2: use GTK2 in your apps, also required to build some pocketbook apps"
+ "bzip2: use bzip2 in your apps, also required to build some pocketbook apps"
+ "giflib: use giflib in your apps, also required to build some pocketbook apps"
+)
+options=('!strip' '!libtool')
- # Copy contents
- cp -r "$srcdir/$pkgname-$pkgver/." "$pkgdir/usr/share/themes/$pkgname"
+prepare() {
+ cd $srcdir/
+ echo "Replacing TOOLCHAIN_PATH in sources/*/CMakeLists.txt and removing useless CMAKE_CURRENT_SOURCE_DIR variable ..."
+ for cmake_lists_txt in $(find -name CMakeLists.txt); do
+ sed -i $cmake_lists_txt -e 's#../../FRSCSDK#/opt/frscsdk#g' -e 's#../../PBSDK#/opt/pbsdk#g' -e 's#${CMAKE_CURRENT_SOURCE_DIR}/##g'
+ done
}
+
+package() {
+ cd $srcdir/
+ # create required directories
+ mkdir -p $pkgdir/opt/ $pkgdir/usr/share/${pkgname}/
+ # install FRSCSDK to /opt/frscsdk & fix permissions
+ cp -r FRSCSDK/ $pkgdir/opt/frscsdk
+ find $pkgdir/opt/frscsdk/ -type d -exec chmod 0755 {} \;
+ find $pkgdir/opt/frscsdk/ -type f -exec chmod 0644 {} \;
+ find $pkgdir/opt/frscsdk/arm-none-linux-gnueabi/bin/ -type f -exec chmod 0755 {} \;
+ find $pkgdir/opt/frscsdk/arm-none-linux-gnueabi/sysroot/usr/bin/ -type f -exec chmod 0755 {} \;
+ find $pkgdir/opt/frscsdk/arm-none-linux-gnueabi/sysroot/vfp/usr/bin/ -type f -exec chmod 0755 {} \;
+ find $pkgdir/opt/frscsdk/bin/ -type f -exec chmod 0755 {} \;
+ find $pkgdir/opt/frscsdk/libexec/ -type f -exec chmod 0755 {} \;
+ # install PBSDK to /opt/pbsdk & fix permissions
+ cp -r PBSDK/ $pkgdir/opt/pbsdk
+ find $pkgdir/opt/pbsdk/ -type d -exec chmod 0755 {} \;
+ find $pkgdir/opt/pbsdk/ -type f -exec chmod 0644 {} \;
+ find $pkgdir/opt/pbsdk/arm-linux/bin/ -type f -exec chmod 0755 {} \;
+ find $pkgdir/opt/pbsdk/bin/ -type f -exec chmod 0755 {} \;
+ find $pkgdir/opt/pbsdk/libexec/ -type f -exec chmod 0755 {} \;
+ # install sources of some pocketbook apps & fix broken links
+ cp -r sources/ $pkgdir/usr/share/${pkgname}/
+ find $pkgdir/usr/share/${pkgname}/sources/ -type l -name system -exec ln -fs /usr/share/${pkgname}/system {} \;
+ # install copy of /mnt/ext1/system
+ cp -r system/ $pkgdir/usr/share/${pkgname}/
+ # fix permissions in /usr/share/${pkgname}
+ find $pkgdir/usr/share/${pkgname}/ -type d -exec chmod 755 {} \;
+ find $pkgdir/usr/share/${pkgname}/ -type f -exec chmod 644 {} \;
+}
+
+#vim: syntax=sh