First release of pocketbook-pro-sdk-linux package
This commit is contained in:
parent
ce8c30e9c6
commit
7c30790cfb
2 changed files with 72 additions and 31 deletions
24
.SRCINFO
24
.SRCINFO
|
@ -1,13 +1,19 @@
|
||||||
pkgbase = pkgbase
|
pkgbase = pocketbook-pro-sdk-linux
|
||||||
pkgdesc = Refreshed new Adwaita theme with creamy colors and minor changes.
|
pkgdesc = Pocketbook-Pro SDK for Linux
|
||||||
pkgver = 3.24.8
|
pkgver = 1.1
|
||||||
pkgrel = 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
|
arch = x86_64
|
||||||
license = MIT
|
license = custom
|
||||||
provides = adwaita-creamy
|
optdepends = cmake: build some pocketbook apps from /usr/share/pocketbook-pro-sdk-linux/sources/
|
||||||
source = adwaita-creamy-3.24.8::https://github.com/murat-cileli/adwaita-creamy/archive/3.24.8.tar.gz
|
optdepends = freetype2: use freetype in your apps, also required to build some pocketbook apps
|
||||||
sha256sums = SKIP
|
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
|
||||||
|
|
||||||
|
|
77
PKGBUILD
77
PKGBUILD
|
@ -1,25 +1,60 @@
|
||||||
# Maintainer: Murat Çileli <murat.cileli@gmail.com>
|
# Maintainer Stoyan Minaev <stoyan.minaev@gmail.com>
|
||||||
|
|
||||||
pkgname="adwaita-creamy"
|
pkgname=pocketbook-pro-sdk-linux
|
||||||
pkgver="3.24.8"
|
pkgver=1.1
|
||||||
pkgrel="1"
|
_pkgver=1_1a
|
||||||
pkgdesc="Refreshed new Adwaita theme with creamy colors and minor changes."
|
pkgrel=1
|
||||||
arch=("x86_64")
|
pkgdesc="Pocketbook-Pro SDK for Linux"
|
||||||
license=("MIT")
|
url="https://sourceforge.net/projects/pocketbook-free/files/PocketBook_Pro_SDK_Linux_1.1/"
|
||||||
url="https://github.com/murat-cileli/adwaita-creamy"
|
license=('custom')
|
||||||
makedepends=()
|
source=("https://datapacket.dl.sourceforge.net/project/pocketbook-free/PocketBook_Pro_SDK_Linux_${pkgver}/sdkrelease_${_pkgver}.tar.gz")
|
||||||
provides=("adwaita-creamy")
|
arch=('x86_64')
|
||||||
source=("$pkgname-$pkgver::https://github.com/murat-cileli/adwaita-creamy/archive/$pkgver.tar.gz")
|
md5sums=('814aca54f7edf4b8c4d9469b455e0866')
|
||||||
sha256sums=("SKIP")
|
optdepends=(
|
||||||
user_name="$(logname)"
|
"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')
|
||||||
|
|
||||||
|
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() {
|
package() {
|
||||||
# Remove old version from user's home themes
|
cd $srcdir/
|
||||||
rm -rf $pkgdir/home/${user_name}/.themes/$pkgname
|
# create required directories
|
||||||
|
mkdir -p $pkgdir/opt/ $pkgdir/usr/share/${pkgname}/
|
||||||
# Create directory
|
# install FRSCSDK to /opt/frscsdk & fix permissions
|
||||||
mkdir -p $pkgdir/usr/share/themes/$pkgname
|
cp -r FRSCSDK/ $pkgdir/opt/frscsdk
|
||||||
|
find $pkgdir/opt/frscsdk/ -type d -exec chmod 0755 {} \;
|
||||||
# Copy contents
|
find $pkgdir/opt/frscsdk/ -type f -exec chmod 0644 {} \;
|
||||||
cp -r "$srcdir/$pkgname-$pkgver/." "$pkgdir/usr/share/themes/$pkgname"
|
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue