{"action":"closed","number":23,"pull_request":{"url":"https://api.github.com/repos/yeban/oswitch/pulls/23","id":31917617,"html_url":"https://github.com/yeban/oswitch/pull/23","diff_url":"https://github.com/yeban/oswitch/pull/23.diff","patch_url":"https://github.com/yeban/oswitch/pull/23.patch","issue_url":"https://api.github.com/repos/yeban/oswitch/issues/23","number":23,"state":"closed","locked":false,"title":"including additional files .deb package","user":{"login":"yeban","id":90373,"avatar_url":"https://avatars.githubusercontent.com/u/90373?v=3","gravatar_id":"","url":"https://api.github.com/users/yeban","html_url":"https://github.com/yeban","followers_url":"https://api.github.com/users/yeban/followers","following_url":"https://api.github.com/users/yeban/following{/other_user}","gists_url":"https://api.github.com/users/yeban/gists{/gist_id}","starred_url":"https://api.github.com/users/yeban/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yeban/subscriptions","organizations_url":"https://api.github.com/users/yeban/orgs","repos_url":"https://api.github.com/users/yeban/repos","events_url":"https://api.github.com/users/yeban/events{/privacy}","received_events_url":"https://api.github.com/users/yeban/received_events","type":"User","site_admin":false},"body":"@tbooth\r\n\r\nSo the approach I took with including additional files (`context/`) in .deb package is like this:\r\n1. move `context/`  to `share/oswitch/` within repository.\r\n2. introduce a constant called `PREFIX` in `pkg.rb` initialised to path of repo root.\r\n3. read contents of `context/` as `PREFIX/share/oswitch/context/`.\r\n4. replace our `pkg.rb` with a Debian specific one (`debian/pkg.rb`) (using `debian/install` file) that overrides `PREFIX` to `/usr`.\r\n\r\nWhat do you think?","created_at":"2015-03-25T12:33:35Z","updated_at":"2015-03-26T17:58:00Z","closed_at":"2015-03-26T17:58:00Z","merged_at":null,"merge_commit_sha":"e53077534c251cf2ff29b76b74cb485d5260ba61","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/yeban/oswitch/pulls/23/commits","review_comments_url":"https://api.github.com/repos/yeban/oswitch/pulls/23/comments","review_comment_url":"https://api.github.com/repos/yeban/oswitch/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yeban/oswitch/issues/23/comments","statuses_url":"https://api.github.com/repos/yeban/oswitch/statuses/3cf115e8ee0974244f066f4cc6fa3e2bf663be0b","head":{"label":"yeban:debian","ref":"debian","sha":"3cf115e8ee0974244f066f4cc6fa3e2bf663be0b","user":{"login":"yeban","id":90373,"avatar_url":"https://avatars.githubusercontent.com/u/90373?v=3","gravatar_id":"","url":"https://api.github.com/users/yeban","html_url":"https://github.com/yeban","followers_url":"https://api.github.com/users/yeban/followers","following_url":"https://api.github.com/users/yeban/following{/other_user}","gists_url":"https://api.github.com/users/yeban/gists{/gist_id}","starred_url":"https://api.github.com/users/yeban/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yeban/subscriptions","organizations_url":"https://api.github.com/users/yeban/orgs","repos_url":"https://api.github.com/users/yeban/repos","events_url":"https://api.github.com/users/yeban/events{/privacy}","received_events_url":"https://api.github.com/users/yeban/received_events","type":"User","site_admin":false},"repo":{"id":27112455,"name":"oswitch","full_name":"yeban/oswitch","owner":{"login":"yeban","id":90373,"avatar_url":"https://avatars.githubusercontent.com/u/90373?v=3","gravatar_id":"","url":"https://api.github.com/users/yeban","html_url":"https://github.com/yeban","followers_url":"https://api.github.com/users/yeban/followers","following_url":"https://api.github.com/users/yeban/following{/other_user}","gists_url":"https://api.github.com/users/yeban/gists{/gist_id}","starred_url":"https://api.github.com/users/yeban/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yeban/subscriptions","organizations_url":"https://api.github.com/users/yeban/orgs","repos_url":"https://api.github.com/users/yeban/repos","events_url":"https://api.github.com/users/yeban/events{/privacy}","received_events_url":"https://api.github.com/users/yeban/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yeban/oswitch","description":"Provides access to complex Bioinformatics software (even BioLinux!) in just one command.","fork":false,"url":"https://api.github.com/repos/yeban/oswitch","forks_url":"https://api.github.com/repos/yeban/oswitch/forks","keys_url":"https://api.github.com/repos/yeban/oswitch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yeban/oswitch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yeban/oswitch/teams","hooks_url":"https://api.github.com/repos/yeban/oswitch/hooks","issue_events_url":"https://api.github.com/repos/yeban/oswitch/issues/events{/number}","events_url":"https://api.github.com/repos/yeban/oswitch/events","assignees_url":"https://api.github.com/repos/yeban/oswitch/assignees{/user}","branches_url":"https://api.github.com/repos/yeban/oswitch/branches{/branch}","tags_url":"https://api.github.com/repos/yeban/oswitch/tags","blobs_url":"https://api.github.com/repos/yeban/oswitch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yeban/oswitch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yeban/oswitch/git/refs{/sha}","trees_url":"https://api.github.com/repos/yeban/oswitch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yeban/oswitch/statuses/{sha}","languages_url":"https://api.github.com/repos/yeban/oswitch/languages","stargazers_url":"https://api.github.com/repos/yeban/oswitch/stargazers","contributors_url":"https://api.github.com/repos/yeban/oswitch/contributors","subscribers_url":"https://api.github.com/repos/yeban/oswitch/subscribers","subscription_url":"https://api.github.com/repos/yeban/oswitch/subscription","commits_url":"https://api.github.com/repos/yeban/oswitch/commits{/sha}","git_commits_url":"https://api.github.com/repos/yeban/oswitch/git/commits{/sha}","comments_url":"https://api.github.com/repos/yeban/oswitch/comments{/number}","issue_comment_url":"https://api.github.com/repos/yeban/oswitch/issues/comments{/number}","contents_url":"https://api.github.com/repos/yeban/oswitch/contents/{+path}","compare_url":"https://api.github.com/repos/yeban/oswitch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yeban/oswitch/merges","archive_url":"https://api.github.com/repos/yeban/oswitch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yeban/oswitch/downloads","issues_url":"https://api.github.com/repos/yeban/oswitch/issues{/number}","pulls_url":"https://api.github.com/repos/yeban/oswitch/pulls{/number}","milestones_url":"https://api.github.com/repos/yeban/oswitch/milestones{/number}","notifications_url":"https://api.github.com/repos/yeban/oswitch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yeban/oswitch/labels{/name}","releases_url":"https://api.github.com/repos/yeban/oswitch/releases{/id}","created_at":"2014-11-25T06:31:53Z","updated_at":"2015-03-26T17:57:16Z","pushed_at":"2015-03-26T17:57:16Z","git_url":"git://github.com/yeban/oswitch.git","ssh_url":"git@github.com:yeban/oswitch.git","clone_url":"https://github.com/yeban/oswitch.git","svn_url":"https://github.com/yeban/oswitch","homepage":"","size":706,"stargazers_count":12,"watchers_count":12,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":7,"forks":4,"open_issues":7,"watchers":12,"default_branch":"master"}},"base":{"label":"yeban:master","ref":"master","sha":"98580f58a2af568526e6a07901bf65049ebd13b6","user":{"login":"yeban","id":90373,"avatar_url":"https://avatars.githubusercontent.com/u/90373?v=3","gravatar_id":"","url":"https://api.github.com/users/yeban","html_url":"https://github.com/yeban","followers_url":"https://api.github.com/users/yeban/followers","following_url":"https://api.github.com/users/yeban/following{/other_user}","gists_url":"https://api.github.com/users/yeban/gists{/gist_id}","starred_url":"https://api.github.com/users/yeban/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yeban/subscriptions","organizations_url":"https://api.github.com/users/yeban/orgs","repos_url":"https://api.github.com/users/yeban/repos","events_url":"https://api.github.com/users/yeban/events{/privacy}","received_events_url":"https://api.github.com/users/yeban/received_events","type":"User","site_admin":false},"repo":{"id":27112455,"name":"oswitch","full_name":"yeban/oswitch","owner":{"login":"yeban","id":90373,"avatar_url":"https://avatars.githubusercontent.com/u/90373?v=3","gravatar_id":"","url":"https://api.github.com/users/yeban","html_url":"https://github.com/yeban","followers_url":"https://api.github.com/users/yeban/followers","following_url":"https://api.github.com/users/yeban/following{/other_user}","gists_url":"https://api.github.com/users/yeban/gists{/gist_id}","starred_url":"https://api.github.com/users/yeban/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yeban/subscriptions","organizations_url":"https://api.github.com/users/yeban/orgs","repos_url":"https://api.github.com/users/yeban/repos","events_url":"https://api.github.com/users/yeban/events{/privacy}","received_events_url":"https://api.github.com/users/yeban/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yeban/oswitch","description":"Provides access to complex Bioinformatics software (even BioLinux!) in just one command.","fork":false,"url":"https://api.github.com/repos/yeban/oswitch","forks_url":"https://api.github.com/repos/yeban/oswitch/forks","keys_url":"https://api.github.com/repos/yeban/oswitch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yeban/oswitch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yeban/oswitch/teams","hooks_url":"https://api.github.com/repos/yeban/oswitch/hooks","issue_events_url":"https://api.github.com/repos/yeban/oswitch/issues/events{/number}","events_url":"https://api.github.com/repos/yeban/oswitch/events","assignees_url":"https://api.github.com/repos/yeban/oswitch/assignees{/user}","branches_url":"https://api.github.com/repos/yeban/oswitch/branches{/branch}","tags_url":"https://api.github.com/repos/yeban/oswitch/tags","blobs_url":"https://api.github.com/repos/yeban/oswitch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yeban/oswitch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yeban/oswitch/git/refs{/sha}","trees_url":"https://api.github.com/repos/yeban/oswitch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yeban/oswitch/statuses/{sha}","languages_url":"https://api.github.com/repos/yeban/oswitch/languages","stargazers_url":"https://api.github.com/repos/yeban/oswitch/stargazers","contributors_url":"https://api.github.com/repos/yeban/oswitch/contributors","subscribers_url":"https://api.github.com/repos/yeban/oswitch/subscribers","subscription_url":"https://api.github.com/repos/yeban/oswitch/subscription","commits_url":"https://api.github.com/repos/yeban/oswitch/commits{/sha}","git_commits_url":"https://api.github.com/repos/yeban/oswitch/git/commits{/sha}","comments_url":"https://api.github.com/repos/yeban/oswitch/comments{/number}","issue_comment_url":"https://api.github.com/repos/yeban/oswitch/issues/comments{/number}","contents_url":"https://api.github.com/repos/yeban/oswitch/contents/{+path}","compare_url":"https://api.github.com/repos/yeban/oswitch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yeban/oswitch/merges","archive_url":"https://api.github.com/repos/yeban/oswitch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yeban/oswitch/downloads","issues_url":"https://api.github.com/repos/yeban/oswitch/issues{/number}","pulls_url":"https://api.github.com/repos/yeban/oswitch/pulls{/number}","milestones_url":"https://api.github.com/repos/yeban/oswitch/milestones{/number}","notifications_url":"https://api.github.com/repos/yeban/oswitch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yeban/oswitch/labels{/name}","releases_url":"https://api.github.com/repos/yeban/oswitch/releases{/id}","created_at":"2014-11-25T06:31:53Z","updated_at":"2015-03-26T17:57:16Z","pushed_at":"2015-03-26T17:57:16Z","git_url":"git://github.com/yeban/oswitch.git","ssh_url":"git@github.com:yeban/oswitch.git","clone_url":"https://github.com/yeban/oswitch.git","svn_url":"https://github.com/yeban/oswitch","homepage":"","size":706,"stargazers_count":12,"watchers_count":12,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":7,"forks":4,"open_issues":7,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yeban/oswitch/pulls/23"},"html":{"href":"https://github.com/yeban/oswitch/pull/23"},"issue":{"href":"https://api.github.com/repos/yeban/oswitch/issues/23"},"comments":{"href":"https://api.github.com/repos/yeban/oswitch/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/yeban/oswitch/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/yeban/oswitch/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yeban/oswitch/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/yeban/oswitch/statuses/3cf115e8ee0974244f066f4cc6fa3e2bf663be0b"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":3,"review_comments":1,"commits":2,"additions":11,"deletions":1,"changed_files":6}}