Skip to content

Commit a159421

Browse files
fix building deadbeef-rating
1 parent 8c9efc2 commit a159421

4 files changed

Lines changed: 6 additions & 60 deletions

File tree

build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ for my $package (@packages) {
271271
if (exists $manifest->{source}->{patches}) {
272272
print "\napplying patches\n";
273273
for my $p (@{$manifest->{source}->{patches}}) {
274+
print("$p ... \n");
274275
system ("cd $ROOT; patch -p1 <$ORIGIN/plugins/$package/$p") && die "patch failed\n";
275276
}
276277
}

plugins/deadbeef-rating/make.diff

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,19 @@ index 0000000..f2f65b0
77
+all:
88
+ $(CC) $(CFLAGS) -std=c99 -fPIC $(LDFLAGS) -shared -o rating.so rating.c
99
diff --git a/rating.c b/rating.c
10-
index 98f70d2..b4f9f61 100644
10+
index a3c0964..0b68f55 100644
1111
--- a/rating.c
1212
+++ b/rating.c
13-
@@ -1,4 +1,4 @@
13+
@@ -1,5 +1,5 @@
14+
#include <sys/types.h>
1415
-#include <deadbeef.h>
1516
+#include <deadbeef/deadbeef.h>
1617
#include <string.h>
1718
#include <stdlib.h>
1819

1920
@@ -220,8 +220,8 @@ static DB_misc_t plugin = {
2021
.plugin.version_major = 1,
21-
.plugin.version_minor = 1,
22+
.plugin.version_minor = 2,
2223
.plugin.type = DB_PLUGIN_MISC,
2324
- .plugin.name = "rating",
2425
- .plugin.descr = "Enables commands to rate song(s) by editing the metadata tag rating.",

plugins/deadbeef-rating/manifest.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
type: "git",
55
url: "https://github.com/splushii/deadbeef-rating.git",
66
patches: [
7-
'make.diff',
8-
'warnings.diff'
7+
'make.diff'
98
],
109
},
1110
make: {

plugins/deadbeef-rating/warnings.diff

Lines changed: 0 additions & 55 deletions
This file was deleted.

0 commit comments

Comments
 (0)