First release of pocketbook-pro-sdk-linux package

This commit is contained in:
Stoyan Minaev 2019-05-23 17:02:08 +03:00
parent ce8c30e9c6
commit 7c30790cfb
2 changed files with 72 additions and 31 deletions

View file

@ -1,13 +1,19 @@
pkgbase = pkgbase
pkgdesc = Refreshed new Adwaita theme with creamy colors and minor changes.
pkgver = 3.24.8
pkgbase = pocketbook-pro-sdk-linux
pkgdesc = Pocketbook-Pro SDK for Linux
pkgver = 1.1
pkgrel = 1
url = https://github.com/murat-cileli/adwaita-creamy
url = https://sourceforge.net/projects/pocketbook-free/files/PocketBook_Pro_SDK_Linux_1.1/
arch = x86_64
license = MIT
provides = adwaita-creamy
source = adwaita-creamy-3.24.8::https://github.com/murat-cileli/adwaita-creamy/archive/3.24.8.tar.gz
sha256sums = SKIP
license = custom
optdepends = cmake: build some pocketbook apps from /usr/share/pocketbook-pro-sdk-linux/sources/
optdepends = freetype2: use freetype in your apps, also required to build some pocketbook apps
optdepends = gtk2: use GTK2 in your apps, also required to build some pocketbook apps
optdepends = bzip2: use bzip2 in your apps, also required to build some pocketbook apps
optdepends = giflib: use giflib in your apps, also required to build some pocketbook apps
options = !strip
options = !libtool
source = https://datapacket.dl.sourceforge.net/project/pocketbook-free/PocketBook_Pro_SDK_Linux_1.1/sdkrelease_1_1a.tar.gz
md5sums = 814aca54f7edf4b8c4d9469b455e0866
pkgname = adwaita-creamy
pkgname = pocketbook-pro-sdk-linux

View file

@ -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