Convert .pkg folder to .pkg.tar.gz?
I just build a package gmchess-0.20-1-i686.pkg.tar.gz from PKGBUILD, I unpack the gmchess-0.20-1-i686.pkg.tar.gz and create a folder gmchess-0.20-1-i686.pkg, after changing some .png files in this folder, I compress the gmchess-0.20-1-i686.pkg folder back to gmchess-0.20-1-i686.pkg.tar.gz, however it can not be installed with command pacman -U, I try to search wiki, but get no clues, thanks for help.
$ sudo pacman -U gmchess-0.20-1-i686.pkg.tar.gz
Password:
loading package data...
error: missing package metadata in gmchess-0.20-1-i686.pkg.tar.gz
error: 'gmchess-0.20-1-i686.pkg.tar.gz': invalid or corrupted package
Xyne wrote:
Open up the PKGBUILD and replace the names of the old png files with the names of the new ones in the "source" array, e.g.:
source=(old_img_1.png old_img_2.png old_img_3.png)
source=(new_img_1.png new_img_2.png new_img_3.png)
Then run "makepkg -g" to generate the new md5sum array. Open the PKGBUILD again and replace the old md5sum array with the new one.
Thanks for your detailed reply, here is PKGBUILD, there is no source array about png, can I just put in the source array for new pngs?
=================================================================================================
# Contributor: yetist <[email protected]>
pkgname=gmchess
pkgver=0.20
pkgrel=1
pkgdesc="Chinese chess game"
arch=("i686" "x86_64")
url="http://code.google.com/p/gmchess/"
license=('GPL2')
depends=("gtkmm" "libglademm")
source=("http://gmchess.googlecode.com/files/$pkgname-$pkgver.tar.bz2")
md5sums=('14ac37609c2fd6f0611001ed4508d688')
build() {
cd "$startdir/src/$pkgname-$pkgver"
./configure --prefix=/usr || return 1
make || return 1
make DESTDIR="$startdir/pkg" install || return 1
Similar Messages
-
Convert rpm/deb to .pkg.tar.gz
I use checkinstall to prevent junk files ruining my system while installing a program from source. But checkinstall can only generate Slackware/rpm/deb packages. Is there any convenient way to directly convert rpm/deb to .pkg.tar.gz, which can be installed using pacman -U?
Note. By directly I mean no need to manually generate a PKGBUILD. The package information should be extracted from rpm/deb package automatically.
Thanks.> Slackware/rpm/deb
IIRC Slackware uses plain tarballs, but this means no dep checks.
> Note. By directly I mean no need to manually generate a PKGBUILD.
PKGBUILDs are necessary only when you create sth from source. deb / rpm packages are already compiled.
Edit: spec2arch from pkgtools pacakge can create PKGBUILDs from .spec files, but I don't know if it's of any help.
Last edited by karol (2010-07-18 18:31:13) -
How to convert a folder of images to a Collection?
Ques 1
How do I convert a folder of images that has been sorted, files rejected, files hidden, and so on, to a Collection? When I create a New Collection and drag the images across from the folder, all editing is lost and the images appear in alphabetical order. I'm using CS6.
Ques 2
What is the location of the file that contains the sorted/rejected/hidden data for a folder?A Collection is just a saved search. It does not contain any images.
Wonder why your question went unanswered for so long?
BOILERPLATE TEXT:
Note that this is boilerplate text.
If you give complete and detailed information about your setup and the issue at hand,
such as your platform (Mac or Win),
exact versions of your OS, of Photoshop (not just "CS6", but something like CS6v.13.0.6) and of Bridge,
your settings in Photoshop > Preference > Performance
the type of file you were working on,
machine specs, such as total installed RAM, scratch file HDs, total available HD space, video card specs, including total VRAM installed,
what troubleshooting steps you have taken so far,
what error message(s) you receive,
if having issues opening raw files also the exact camera make and model that generated them,
if you're having printing issues, indicate the exact make and model of your printer, paper size, image dimensions in pixels (so many pixels wide by so many pixels high). if going through a RIP, specify that too.
A screen shot of your settings or of the image could be very helpful too,
etc.,
someone may be able to help you (not necessarily this poster, who is not a Windows user).
Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
http://forums.adobe.com/thread/419981?tstart=0
Thanks! -
Changing the "pkg" folder position
Hello there...
I've searched through pacman configs to find a way to make pacman download packages to a folder in an other larger partition instead of my "/" (/var/cache/pacman/pkg),but i couldn't make it !!
Can anybody help me change these default settings?
Thanks !I don't know of any way to change that setting but a symlink pointing to where you want it to go should work.
-
Acrobat 9 / Outlook 2007 - Convert Mail Folder to PDF Crashes Outlook
Procedure:
Opened Outlook 2007, selected email folder, right clicked email folder, selected from menu: Convert "folder" to Adobe PDF, selected save
Problem:
After many successful such folder conversions, one email folder in particular caused Outlook 2007 to crash when half way through conversion
Solution:
Finally, upon about the 7th attempt, I noticed Outlook crashed when attempting to convert one particular email file (within the folder)
The name of the offending email file was visible during the conversion process
I reopened Outlook, examined the offending email and discovered it contained Japanese characters in the attachments
I then deleted the offending email and recommenced the procedure
All ran smoothly as per normal, Problem Solved!
I hope this helps somebody out thereI searched everywhere on the web for a solution and came up with nothing - so when I finally worked it out (simple in hindsight) I just had to make the post (my very 1st!).
-
How to tar a folder into a tar file
I have a folder on my local system which I want my Java code to tar. But I want to also add a file filter so that only one particular subfolder gets added into that tar. How do I do that. How do I create an OutputStream to tar.
e.g Say I have the architecture like
C:/MainFolder
|-subfolder1
|-subfolder2
|-subfolder3
I want to tar MainFolder such that only the subfolder1 is included in the tar.
How do I do that?You'll have to look for a 3rd party lib that produces TARs. The core distribution only supports ZIPs.
-
I HAVE WRITTEN 1ST PKG WITH PROCEDURE AND 2ND PKG WITH FUNCTION
HOW SHOULD I EXECUTE 1ST PKG.PROCEDURE IN 2ND PKG.FUNCTION
WHAT IS THE PROPER METHOD?No problem,
Now we just need to work on your CAPS LOCK button.....
:) -
Quality of JPEG when being converted by Folder Actions (Image Events)
I take a lot screenshots with Command + Shift + 3/4. They are in PNG and I love them. Yet, I need to send them via email sometimes.
I convert them to JPEG using Preview, but it is time-consuming when especially I have hundreds of them.
I have just learnt that it is possible to do convert in batch using Folder Actions. However, I meet few very serious problems.
1. In Preview, I could choose the quality of JPEG before converting. But, there is no such option in Folder Actions. I even searched online to try to modify the script and it seems that nobody cares about the quality of converted JPEG.
My question: What is the quality of JPEG converted? And, is it possible to modify it?
2. Since I do not know the quality of conversion using Folder Actions, I tried different qualities using Preview and match the outputs with those using Folder Actions. I got no result. As Preview is using Core Image as the processing architecture.
My question: What is the image processing architecture adopted by Image Events?
3. If the quality is unchangeable, can anyone teach me how to write a new script to do the conversion using Preview?
I really hope Mac OS gurus could explain these to me and possibly solve my problems. I am interested to learn the AppleScript part to modify it.
Thank you very much.It is the original folder action script from Mac OS. Here is the copy.
Could you help me as well where to add the "compression level"? Also, what do "high", "low" and "medium" mean, in % just like Preview, if they use the same image processing architecture?
Again, thank you very much for quick reply.
================
Image - Duplicate as JPEG
This Folder Action handler is triggered whenever items are added to the attached folder.
The script creates a JPEG version of the file, but leaves a copy of the file
in its original format. If the original file is already in JPEG format, the script does
not duplicate the file.
Copyright © 2002–2007 Apple Inc.
You may incorporate this Apple sample code into your program(s) without
restriction. This Apple sample code has been provided "AS IS" and the
responsibility for its operation is yours. You are not permitted to
redistribute this Apple sample code as "Apple sample code" after having
made changes. If you're going to redistribute the code, we require
that you make it clear that the code was descended from Apple sample
code, but that you've made changes.
property done_foldername : "JPEG Images"
property originals_foldername : "Original Images"
property newimage_extension : "jpg"
-- the list of file types which will be processed
-- eg: {"PICT", "JPEG", "TIFF", "GIFf"}
property type_list : {"TIFF", "GIFf", "PNGf", "PICT"}
-- since file types are optional in Mac OS X,
-- check the name extension if there is no file type
-- NOTE: do not use periods (.) with the items in the name extensions list
-- eg: {"txt", "text", "jpg", "jpeg"}, NOT: {".txt", ".text", ".jpg", ".jpeg"}
property extension_list : {"tif", "tiff", "gif", "png", "pict", "pct"}
on adding folder items to this_folder after receiving these_items
tell application "Finder"
if not (exists folder done_foldername of this_folder) then
make new folder at this_folder with properties {name:done_foldername}
end if
set the results_folder to (folder done_foldername of this_folder) as alias
if not (exists folder originals_foldername of this_folder) then
make new folder at this_folder with properties {name:originals_foldername}
set current view of container window of this_folder to list view
end if
set the originals_folder to folder originals_foldername of this_folder
end tell
try
repeat with i from 1 to number of items in these_items
set this_item to item i of these_items
set the item_info to the info for this_item
if (alias of the item_info is false and the file type of the item_info is in the type_list) or (the name extension of the item_info is in the extension_list) then
tell application "Finder"
my resolve_conflicts(this_item, originals_folder, "")
set the new_name to my resolve_conflicts(this_item, results_folder, newimage_extension)
set the source_file to (move this_item to the originals_folder with replacing) as alias
end tell
process_item(source_file, new_name, results_folder)
end if
end repeat
on error error_message number error_number
if the error_number is not -128 then
tell application "Finder"
activate
display dialog error_message buttons {"Cancel"} default button 1 giving up after 120
end tell
end if
end try
end adding folder items to
on resolve_conflicts(this_item, target_folder, new_extension)
tell application "Finder"
set the file_name to the name of this_item
set file_extension to the name extension of this_item
if the file_extension is "" then
set the trimmed_name to the file_name
else
set the trimmed_name to text 1 thru -((length of file_extension) + 2) of the file_name
end if
if the new_extension is "" then
set target_name to file_name
set target_extension to file_extension
else
set target_extension to new_extension
set target_name to (the trimmed_name & "." & target_extension) as string
end if
if (exists document file target_name of target_folder) then
set the name_increment to 1
repeat
set the new_name to (the trimmed_name & "." & (name_increment as string) & "." & target_extension) as string
if not (exists document file new_name of the target_folder) then
-- rename to conflicting file
set the name of document file target_name of the target_folder to the new_name
exit repeat
else
set the name_increment to the name_increment + 1
end if
end repeat
end if
end tell
return the target_name
end resolve_conflicts
-- this sub-routine processes files
on process_item(source_file, new_name, results_folder)
-- NOTE that the variable this_item is a file reference in alias format
-- FILE PROCESSING STATEMENTS GOES HERE
try
-- the target path is the destination folder and the new file name
set the target_path to ((results_folder as string) & new_name) as string
with timeout of 900 seconds
tell application "Image Events"
launch -- always use with Folder Actions
set this_image to open file (source_file as string)
save this_image as JPEG in file target_path with icon
close this_image
end tell
end timeout
on error error_message
tell application "Finder"
activate
display dialog error_message buttons {"Cancel"} default button 1 giving up after 120
end tell
end try
end process_item -
What is this converter.dSYM folder in my application folder?
Hello,
I noticed a new folder titled "converter.dsym", which contains another folder called "dwarf". The latter contains file called "converter". No filename extension.
Does it sound familiar to you ?
It's exactly as in this thread. https://discussions.apple.com/message/12154159#12154159
Thanks for any input.I know you can certainly get rid of it. Dwarf is a file format of debugging information for the gdb debugger. The only thing that isn't clear is how you ended up having it in the first place.
It looks like the file "converter" was compiled (gcc) or assembled (as) with debugging info generation enabled. So who's compiling it? I don't know. -
I just downloaded idospav-1.pkg, How do I get it off? Little shield on the top bar won't go away and I can't drag it off. Trashed the downloads I could find. Think it works off my email or safari and I get popups that I DON"T WANT. How do I delete? Is there a "clean up" package anywhere? THanks!
Hi Christie,
What application was that for? Have you looked in Sys Prefs > Accounts > Log in items? -
Where did my Add-in option to convert email folder to PDF go?
On a previous installation of my Adobe 9, it created a "right-click" link option when RC on an email folder that allowed me to quickly convert/append that email folder to a PDF/my Documents. I had to reinstall the software on new computer and it now does not give me that option. It was one of my favorite features . How can I get this back?
On a previous installation of my Adobe 9, it created a "right-click" link option when RC on an email folder that allowed me to quickly convert/append that email folder to a PDF/my Documents. I had to reinstall the software on new computer and it now does not give me that option. It was one of my favorite features . How can I get this back?
-
is there a means to convert a local Mac home folder to a user that is now AD authenticated.
ie. system has 3 accounts (admin, bob and guest)
system is bound to AD.
bob now logs into his mac with Bob.Johnson his active directory account. a new home folder is created for him.
How can i connect or migrate all bob's settings from his local "bob" account to the bob.johnson account?
any thoughts?Yes, it should be possible, but no, I don't know anyone who's actually done it.
Have you read all of Apple's AD pages? Here are a few starting points:
http://apple.com/itpro/articles/adintegration/
http://macwindows.com/AD.html
http://www.fatofthelan.com/articles/articles.php?pid=14
AlBook 15 -
Convert Windows folder.jpg into OS X custom folder icon
Hello everyone,
after months reading numerous post on the Web trying to find a way to convert the Windows "folder.jpg" into an OS X custom folder icon, I've come up with a solution using only the shell. Some users proposed using the Automator, which caused me lots of trouble (Spotlight sometimes wouldn't find the folder, or would return a Privacy error, and so on). Therefore, my solution uses only a Shell script with dependencies on some external libraries (most of them allowing to manipulate images and icons).
Here's the code on Pastebin.
I hope this will be as helpful for you as it was for me. It allowed me to apply the custom folder icons to thousands of folders, including the local Mac folders as well as the one on external storage (USB or LAN).
André L. M. SANTOSHello everyone,
after months reading numerous post on the Web trying to find a way to convert the Windows "folder.jpg" into an OS X custom folder icon, I've come up with a solution using only the shell. Some users proposed using the Automator, which caused me lots of trouble (Spotlight sometimes wouldn't find the folder, or would return a Privacy error, and so on). Therefore, my solution uses only a Shell script with dependencies on some external libraries (most of them allowing to manipulate images and icons).
Here's the code on Pastebin.
I hope this will be as helpful for you as it was for me. It allowed me to apply the custom folder icons to thousands of folders, including the local Mac folders as well as the one on external storage (USB or LAN).
André L. M. SANTOS -
How do I convert a folder containing multiple jpg files to pdfs
I have to convert several folders containing jpg files to individual pdf files. I can't seem to do this.
You could use Acrobat XI Pro to Create PDF from Files.
This process lets you select supported file formats and outputs PDF.
Be well... -
Help! Convert iPhoto folder back into a package!
I had to have my cloud backup company send me back a hard disk containing my iphoto library because my local copy was corrupted. When I received it today, the iPhoto library came back as a folder. It has everything in it, but it's viewed as a folder, not a package. So when I double click it, it doesn't open iPhoto. It's just treated like a folder.
How do I make it back as a package?I doubt if you'll be able to restore your library to working order. Keith's suggestion is worth trying but I'm afraid that all of the links between image files and database files are damaged beyond repair.
The following will be able to get your photos back in a new library with the same event grouping as you had (but probably not the same Event names).
Starting over from scratch with new library
Start over with a new library and import the Originals (iPhoto 09 and earlier) or the Masters (iPhoto 11) folder from your original library as follows:
1. Open the library folder and locate the Masters or Originals folder.
2. Launch iPhoto with the Option key held down and, when asked, select the option to create a new library.
3. Drag the subfolders of the Originals (iPhoto 09 and earlier) or the Masters (iPhoto 11) folder from the open iPhoto Library package into the open iPhoto window a few at a time.
This will create a new library with the same Events (but not necessarily the same Event names) as the original library but will not keep the metadata, albums, books slideshows and other projects.
Note: your current library will be left untouched for further attempts at a fix if so desired.
Maybe you are looking for
-
Any ideas on why I can't download the latest itunes?
I am trying to download the latest iTunes (10.2.1) to my PC, but I'm running into all sorts of trouble. OS is Windows 7. When I first tried downloading it, I got the following message: C:\Users\Jelli\Downloads\iTunes64Setup(1).exe.part could not be s
-
How can I edit and delete IOS 7 IPAD safari favorites?
In IOS7/Ad safari, how can I edit or delete safari favorites? Thanks! Alan
-
Reg : Rounding Issue in Oracle BI Publisher
Hi all, In BI Publisher am trying to view the data in XML and the source is Oracle BI(for sql). Here while seeing the results am getting the values like <ROWSET> − <ROW> <saw_0>1.42957E7</saw_0> --Here actual value is 14,295,700 <saw_1>1.20302456E7</
-
* Firefox will not set as my default browser, regardless of setting the option? * My desktop icon only allows me to open Firefox as an administrator, while my family's Firefox icons are accessible? * The 3 other accounts have parental controls and wa
-
Re: Generating Dynamic Xcelsius Report
Hi all, I need to develop an Xcelsius Report on Sales by Material, which has, the data as following: Year Month MaterialGroup Material Sum_of_netprce/Material 2009 Jun oxyz 1234 340$ 2