Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
chromebrew
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
chromebrew
Commits
c4d3743b
Commit
c4d3743b
authored
Feb 20, 2021
by
saltedcoffii
Committed by
GitHub
Feb 20, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[New Package] oneko (#5202)
parent
0d68539c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
0 deletions
+49
-0
packages/oneko.rb
packages/oneko.rb
+49
-0
No files found.
packages/oneko.rb
0 → 100644
View file @
c4d3743b
require
'package'
class
Oneko
<
Package
description
'A cat chases around your mouse cursor.'
homepage
'http://www.daidouji.com/oneko/'
version
'1.2.sakura.6'
compatibility
'all'
source_url
'https://httpredir.debian.org/debian/pool/main/o/oneko/oneko_1.2.sakura.6.orig.tar.gz'
source_sha256
'd89cee8b81cdb40ef23b3457c9a7fe1b0ff130081b21a41ec6c41cda01391d25'
depends_on
'libx11'
depends_on
'libxext'
depends_on
'sommelier'
depends_on
'imake'
=>
:build
depends_on
'xorg_cf_files'
=>
:build
depends_on
'gccmakedep'
=>
:build
def
self
.
patch
# Download extra sources
system
"curl -#LO https://httpredir.debian.org/debian/pool/main/o/oneko/oneko_1.2.sakura.6-15.debian.tar.xz"
system
"curl -#LO https://bouncer.gentoo.org/fetch/root/all/distfiles/oneko-1.2-cat.png"
system
"curl -#LO https://bouncer.gentoo.org/fetch/root/all/distfiles/oneko-1.2-dog.png"
# Verify the sources
@sha256sums
=
<<~
EOF
8f12f3e167f100e0fcef5185f6f1faf47cb627d96c7011e580348f5f317e76b4 oneko_1.2.sakura.6-15.debian.tar.xz
994dec71c4021f4e228b8c69fcefde5b11244445ff8ff6d43b3790beecef5800 oneko-1.2-cat.png
5ca2d41b5538618196cfe9e40dd75856fde77fe35cba99ed9b2eacf1fb0e5502 oneko-1.2-dog.png
EOF
IO
.
write
(
"sha256sums"
,
@sha256sums
)
system
"sha256sum -c sha256sums"
# Unpack the patches
system
"tar xf oneko_1.2.sakura.6-15.debian.tar.xz"
# Patch the patches
system
"for patch in $(cat debian/patches/series); do patch -p 1 -i debian/patches/${patch}; done"
end
def
self
.
prebuild
# Turn the Imakefile into a Makefile
system
"xmkmf -a"
end
def
self
.
build
system
"make"
end
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment